Error handling

Results 1 to 2 of 2

Thread: Error handling

  1. #1
    Chris Clarke Guest

    Default Error handling

    Does anyone know how to redirect a user to a generic error page when an error occurs in my ASP application?? Specifically, when left for a long period of time, my session variables time out and the application fails. Thus when this happens I want to redirect users to the login page.

  2. #2
    Wiseguy Guest

    Default RE: Error handling

    I am far from being an expert at ASP, but perhaps you need to use the following:<BR><BR>On Error Resume Next<BR><BR>This will cause the page to continue to process when an error occurs. You can then do an if-statement as follows:<BR><BR>If err.number &#060;&#062; 0 then<BR> Response.redirect "&#060;URL&#062;"<BR>End If<BR><BR>This worked for my situation, however, yours might be different. Hope this helps!<BR><BR>Wiseguy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts