Wednesday, July 28, 2010

Add a JavaScript alert box

http://www.beansoftware.com/ASP.NET-Tutorials/Message-Box.aspx

http://www.dotnetspider.com/forum/ViewForum.aspx?ForumId=32564

Credits to chakravarthy


string tmp = "";
tmp = "";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", tmp);
and if u want to alert message for Exceptions
string tmp = "";
tmp = "";
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "MyScript", tmp);

No comments: