Can i use try - catch blocks when i set a custom error handling page.
-
Hi, I have written http module to catch the errors from my application and then redirect a user to custom error page. In this case..can't i use try-catch blocks. Since my code contains try-catch blocks..but even it displaying error instead of going to cutom error page. Can you suggest the way to resolve this? Regards Satish
G. Satish
-
Hi, I have written http module to catch the errors from my application and then redirect a user to custom error page. In this case..can't i use try-catch blocks. Since my code contains try-catch blocks..but even it displaying error instead of going to cutom error page. Can you suggest the way to resolve this? Regards Satish
G. Satish
You don't need to write a custom httphandler for this. Handle the Application_Error event in the global.asax and redirect to catch the unhandled exceptions. How are you trying to redirect in your try/catch blocks?
I know the language. I've read a book. - _Madmatt