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.