Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,
It will be great if you can help me for bellow situation.

I am working in a website in asp.net platform,

Now ,I have a aspx page say abc.aspx & i can handle any server error like
NullReferenceException,BadImageFormatExceptionetc in Page_Error() event.

Now is there any way to handle for any error happened in aspx page for the same?
Currently i am getting parser error but that is fine , just want to catch above
as the same way i do for .cs file for any particular webpage.
Posted
Comments
Menon Santosh 16-Jul-15 4:08am    
please post your error

I think you mean to handle something on client side. If i'm not wrong, you should have a look at this : http://stackoverflow.com/a/11257495[^]

Regards..
 
Share this answer
 
Comments
Mukesh Ghosh 16-Jul-15 2:47am    
I want to handle any parser error happened in aspx page.
Mukesh Ghosh 16-Jul-15 4:12am    
See error is not my concern it can be anything like tag mismatch in aspx,i just want to catch the error & handle it.
Follow,
Exception Handling and .NET
v
[^]

I hope it will work
 
Share this answer
 
Comments
Mukesh Ghosh 16-Jul-15 2:47am    
No, I want to handle any parser error happened in aspx page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900