Monday, May 6, 2013

Show Alert popops by asp.net C# code using RegisterStartupScript

Using below code , you can show the  Alert Popups like in javascript.  In the code you can see the use of RegisterStartupScript
 Page.ClientScript.RegisterStartupScript(typeof(string), "alertScript", "alert('Username/Password is incorrect!!');", true);