Sunday, July 22, 2012

Javascript alert message in AJAX

When we use AJAX into the page then we cannot show alert message using RegisterStartupScript to show the alert message in AJAX page you can use the below code

ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "alertmsg", "alert('Your Message!.');", true);