Error handling in ASP

Results 1 to 2 of 2

Thread: Error handling in ASP

  1. #1
    Malani Guest

    Default Error handling in ASP

    Is it possibe to use ON ERROR GOTO LABEL to handle the runtime error in ASP<BR><BR>Thanks<BR><BR>

  2. #2
    KPW Guest

    Default RE: Error handling in ASP

    Sorry, but in VBScript you can only use On Error Resume Next. However, you can use even this pitiful error handling method to enable error trapping.<BR><BR>After any line that you think might throw an error, you can use<BR><BR>If Err.Number &#060;&#062; 0 then<BR>&#039 there was an error<BR>Else<BR>&#039 there was not an error<BR>End If<BR><BR>There was an article on 4Guys about trapping errors. You might try searching 4Guys for "error trapping" or some variant of that.<BR><BR>HTH

Posting Permissions

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