1
Reply

How to display message box if any error occur in the page using c sharp?

MohanRaj C

MohanRaj C

Jun 18 2012 8:14 AM
1.6k
How to display message box if any error occur in the page using c sharp?

If any error occur in the page during submitting the form,

i need to display message box.....

I tried this code in Exception

Response.Write("<script>alert('" + ex + "')</script>");

but it dindt work .....

How i solve this problem?

Answers (1)