Sunday, April 12, 2009

JavaScript alert from UpdatePanel in ASPX (C#)

ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "clientScript", "alert('Item saved successfully.')", true);

The last true is to add javascript tags.

3 comments:

Unknown said...

great wrk..congrats..n thanks.

Unknown said...

nice post. i was looking for this script....keep it up.

Ashik Iqbal said...

Thank you all.