DefaultRedirect Problem

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Gary (gb_at_nospam.com)
Date: 02/02/04


Date: Mon, 2 Feb 2004 10:47:41 -0800

When using an ASPX page for a DefaultRedirect it does not work if the ASPX
page has any code in it.

If I put ...

        If Not IsPostBack Then
            lblMessage.Text = Server.GetLastError.Message
        End If

in the ASPX page it does not display when an unhandled exception is thrown.
If I take the code out, the ASPX page displays properly when an unhandled
exception is thrown.

Does anyone know why this occurs?
Thanks,
G



Relevant Pages

  • Re: DefaultRedirect Problem
    ... Got tidbits? ... > When using an ASPX page for a DefaultRedirect it does not work if the ASPX ... > in the ASPX page it does not display when an unhandled exception is ... > exception is thrown. ...
    (microsoft.public.dotnet.framework.aspnet)
  • customErrors
    ... I specified an aspx page in my web.config/customErrors tag to handle any ... When an exception is thrown, Server.GetLastErrorreturns null in the error ...
    (microsoft.public.dotnet.framework.aspnet)
  • Error adding aspx page or project in Visual Studio 2003
    ... I get the following error when attempting to add an aspx page or project to the IDE: ... An unhandled exception has been caught by the VSW exception filter. ...
    (microsoft.public.vsnet.ide)