Handling Errors in a custom page

Discussion in 'ASP .Net' started by ThunderMusic, Sep 20, 2006.

  1. ThunderMusic

    ThunderMusic Guest

    Hi,
    I'd like to handle all some of my exception by a custom page. I put the
    validations in the global.asax to redirect to the custom page, but everytime
    an exception is raised, the Server.GetLastError() is == to null in the
    page_load of my custom page... Even if I set the exception in the Session,
    it's empty when it gets to my custom page. why is this? Is there anyway I
    can get the last generated exception from my custom error page?

    thanks

    ThunderMusic
     
    ThunderMusic, Sep 20, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    968
    Mark Goldin
    Jan 17, 2004
  2. =?Utf-8?B?Sm9yZ2UgTWF0b3M=?=

    Handling errors and not redirecting to a custom error page

    =?Utf-8?B?Sm9yZ2UgTWF0b3M=?=, Oct 29, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    503
    Matt Berther
    Oct 29, 2004
  3. Patrick.O.Ige

    Handling Custom Errors 401.2

    Patrick.O.Ige, Jul 26, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    5,245
    Juan T. Llibre
    Aug 18, 2005
  4. =?Utf-8?B?U3VoYXMgVmVuZ2lsYXQ=?=

    What is the best way for handling Errors & giving Custom Error mes

    =?Utf-8?B?U3VoYXMgVmVuZ2lsYXQ=?=, Jul 21, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    349
    =?Utf-8?B?U3VoYXMgVmVuZ2lsYXQ=?=
    Jul 21, 2006
  5. Replies:
    3
    Views:
    527
    bruce barker
    Jul 30, 2007
Loading...

Share This Page