Site Search

Thursday, June 30, 2011

Fire javascript function by code behind

You can access JavaScript function by code behind and fire those easily.
Server side
string myScript = "close();";
ScriptManager.RegisterStartupScript(this.Page, typeof(Page),"CloseWindowKey", myScript, true);
Client side
function close() {
//Functionality for close pop up window
}

No comments:

Post a Comment