Redirect on Server (Down) Error - is it possible?

Results 1 to 2 of 2

Thread: Redirect on Server (Down) Error - is it possible?

  1. #1
    Ed Guest

    Default Redirect on Server (Down) Error - is it possible?

    I checked my script today and was greeted with the ASP error on the line where the code fell over. Turns out the ISP server was down. This looks kinda ugly and unprofessional and the error wasn&#039t my fault so:<BR><BR>Is there any way to redirect to a default page on encountering a processing error? I looked into the On Error Resume Next but can&#039t see a way to use this to point to the call procedure...<BR><BR>Any hints or advice gratefully received.

  2. #2
    Join Date
    Dec 1969

    Default RE: Redirect on Server (Down) Error - is it possib

    The "server not working" page is managed at the server itself. <BR>--==The following code is pue theory and has not been tested==--<BR>You might try something like this:<BR>On error resume next<BR>if err.number &#060;&#062; 0 then<BR>response.redirect("Sompage.html")<BR>end if<BR>The err object is set to something other than zero when there is a problem. Theoretically, this should work.<BR><BR>

Posting Permissions

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