G
GCeaser
So here is the desired functionality:
When an error occurs anywhere in my application, I want an error
section on the page to display the error information while still
showing the actual page that the user encountered the error on.
Here is what I have tried:
I have an ASP.Net 2.0 web application. It uses a master page
that has information on it as well as a Web User Control for displaying
error information. By default the web user control is not visible In
order to code the least amount, I am attempting to us the Page_Error
event to populate the Web User Control will the error information and
make it visible.
The problem:
As described in a previous posting - the Page_Error event will
not render the page content by default. (this would accomplish still
showing the user the page where the error was encountered). I can of
course attempt to force the rendering in any of several manners but I
generally receive an error message indicating that
RegisterForEventValidation can only be called during Render. Fine - I
get that and I know I can turn it off and some of the risk around
turning it off.
The Question:
What is everyone else doing? I have to imaging there are other
programmers out here that want to do the least amount of coding with
the best results so I am looking from some feedback on how other people
might have accomplished what I am attempting.
Any feedback would be appreciated.
When an error occurs anywhere in my application, I want an error
section on the page to display the error information while still
showing the actual page that the user encountered the error on.
Here is what I have tried:
I have an ASP.Net 2.0 web application. It uses a master page
that has information on it as well as a Web User Control for displaying
error information. By default the web user control is not visible In
order to code the least amount, I am attempting to us the Page_Error
event to populate the Web User Control will the error information and
make it visible.
The problem:
As described in a previous posting - the Page_Error event will
not render the page content by default. (this would accomplish still
showing the user the page where the error was encountered). I can of
course attempt to force the rendering in any of several manners but I
generally receive an error message indicating that
RegisterForEventValidation can only be called during Render. Fine - I
get that and I know I can turn it off and some of the risk around
turning it off.
The Question:
What is everyone else doing? I have to imaging there are other
programmers out here that want to do the least amount of coding with
the best results so I am looking from some feedback on how other people
might have accomplished what I am attempting.
Any feedback would be appreciated.