CloseWindow = "alert('sundar')";//we have to call javascript function also.
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "CloseWindow", CloseWindow,true);
following code should be work in the page load time only
Page.RegisterClientScriptBlock("sundar", "")
Page.RegisterStartupScript("sundar", "");
Thursday, April 9, 2009
Friday, April 3, 2009
Javascript Char Codes (Key Codes)
Javascript Char Codes (Key Codes)
Summary
Javascript is often used on the browser client side to perform simple tasks that would otherwise require a full postback to the server. Many of those simple tasks involve processing text or characters entered into a form element on a web page, and it is often necessary to know the javascript keycode associated with a character. Here is a reference.
Javascript is often used on the browser client side to perform simple tasks that would otherwise require a full postback to the server. Many of those simple tasks involve processing text or characters entered into a form element on a web page, and it is often necessary to know the javascript keycode associated with a character. Here is a reference.
|
Subscribe to:
Posts (Atom)