Wednesday, May 21, 2014

How to show alert box within UpdatePanel

Showing javascript alert box within update panel is some time very much problematic.
So here is the right way to show that.

Within a button click or any event coming from update panel write the following code to show the alert box

ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('<Your message>');", true);

Try this and enjoy


Post a Comment

Popular Posts