Have I misunderstood what this property's documentation means by "sets the error page to which the requesting browser is redirected in the event of an unhandled page exception"?
My scenario:
- a web application with a master page, a Default.aspx page and an Error.aspx page
- Default and Error both use the master page
- Default.aspx has ErrorPage="Error.aspx" in the @Page directive
- the first line of Default's Page_Load method is "throw new Exception();"
- the redirect to Error.aspx does not happen
I have managed to catch the exception and redirect through the following separate means:
1) Attaching a handler to the Page.Error event (in Page_Load "this.Error += this.Error += new EventHandler(HandleError);")
or2) Overriding Page_Error and setting AutoEventWireup to trueor
3) Overriding Application_Error in my Global.asax
But none of this seems to have any relationship to Page.ErrorPage. Is this property just a container for me to save the URL of my error page? Or is there something else I need to set so that ASP.NET redirects to the page defined by this property?
[tfl - 20 05 09] Hi - and thanks for your post. You should post questions like this to the MSDN Forums at http://forums.microsoft.com/msdn or the MSDN Newsgroups at
http://www.microsoft.com/communities/newsgroups/en-us/. You are much more likely get a quicker response using the forums than through the Community Content. For specific help about:
Visual Studio : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.vstudio%2C&
.NET Framework : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public.dotnet.framework
All Public : http://groups.google.com/groups/dir?sel=usenet%3Dmicrosoft.public%2C&