Monday, January 19, 2009

calling external js file from another external js file

First.js

function one()
{
alert('wroked');
var link_new=document.createElement('script');
link_new_script.src="second.js";
document.body.appendChild(link_new_script);
two();
}

second.js
function two()
{
alert('working');
}

Friday, January 9, 2009

Dictionary Object

use below header to invoke Dictionary
using System.Collections.Generic;

Dictionary myvalue = new Dictionary();
myvalue.Add("First Name","VIJAY");
myvalue.Add("Second Name","ANANDH");
foreach (KeyValuePair value in myvalue)
{
if (value.Key == "First Name")
{
Response.Write(value.Value.ToString());
}
}