Hi,
how do I customize the way DNN handles server side errors that occurs on a postback with a complete page reload?
I've created a DNN page and put a module on that page. The module contains one form. After submitting the form a postback to the server and a complete page reload is performed. When an exceptions is thrown while handling the postback, the page is reloaded and a red (default) DNN message is shown on top of the page:
"A critical error has occurred.An unexpected error has occurred"
And the URL changes to:
http://localhost:8080/Default.aspx?tabid=[,,,]&error=An%20unexpected%20error%20has%20occurred&content=0
Is there a way to configure the URL the client is redirected to in case of an exception is thrown? I would like to set up a default InternalServer error page (like /ErrorInternalServerError.aspx) that is shown to the user in case of any (server side) error.
I tried to set up <customErrors> tag in the Web.config for the error page, but this only worked for 404 errors (page not found).
Thanks in advance.