G
Guest
I am deep into a project and cannot get this to work correctly.
I am trying to make a custom error page that will be able to know what
exception occurred. I already know about the defaultRedirect page -
<customErrors mode="on" defaultRedirect="Error.aspx"/>
But how do I reference the exception that occurred from that page?
If I cant, then should I use the Application_Error event in global.asax ?
And if I do that, then what about hiding the error from the user?
Please tell me what I'm missing because I just cant see it now.
I am trying to make a custom error page that will be able to know what
exception occurred. I already know about the defaultRedirect page -
<customErrors mode="on" defaultRedirect="Error.aspx"/>
But how do I reference the exception that occurred from that page?
If I cant, then should I use the Application_Error event in global.asax ?
And if I do that, then what about hiding the error from the user?
Please tell me what I'm missing because I just cant see it now.