To show alert Message in web application without using javascript

In web application we can show alert message dialog through coding
simply attach my cs folder in your appcode folder(download the cs page)
now where is appcode folder,if dont now (see the attachment files)
Now in default.aspx.cs page(means in code behind page)
add namespace as

using WebMsgBox;

protected void Page_Load(object sender, EventArgs e)

WebMsgBox.MsgBox.Show("this is an alert box");

you can use it anywhere,i have shown in page load event

please rate this answer if it is helpful to you
kamna Nagpal



Author: Asheej T K09 Dec 2009 Member Level: Gold   Points : 1

Kamna, i tried your code but i am getting below error, i am using C# 2.0

"The name 'CurrentPageUnload' does not exist in the current context"

can you tell me what could be the issue??

Author: kamna10 Dec 2009 Member Level: Gold   Points : 0

ya, i have seen a function missing,now try it again

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: