maeesage boxes
in my web application i didn't get message box options while using it in a try catch block
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
ramesh natarajanPosted Jan 24, 2012, 5:21 AM
I know that Javascript will help!
but I am not sure what anil expecting!
Jignesh TrivediPosted Jan 24, 2012, 5:09 AM
agree with krishna.
this is not good idea to show message box using System.Windows name space but use use java script.
kindly share more detail of ur work why we required it when it required?
hope this help.
Krishna GaradPosted Jan 24, 2012, 4:10 AM
ramesh natarajanPosted Jan 24, 2012, 4:09 AM
Before that Right-Click on the Solution and Add System.Window.Forms Dll Reference.
protected void Page_Load(object sender, EventArgs e)
{
try
{
System.Windows.Forms.MessageBox.Show("hi");
int a = 0;
int b = 0;
int c = a / b;
}
catch(Exception ex)
{
string text = ex.ToString();
System.Windows.Forms.MessageBox.Show(text);
}
}
Thanks
Ramesh Natarajan