Error Handling in ASP Pages

Results 1 to 2 of 2

Thread: Error Handling in ASP Pages

  1. #1
    Join Date
    Dec 1969

    Default Error Handling in ASP Pages

    I use the following error handling procedure in ASP.<BR>I would like to know, cant we use on "error goto errhandler" in ASP as we do in VB?<BR><BR>&#060;%<BR>on error resume next<BR>---<BR><BR>--<BR>cn.execute "sql satement"<BR>--<BR><BR>if Err.number&#060;&#062;0 then <BR> if cn.Errors(0).Number&#060;&#062;0 then &#039;If any database error occurs, handle here<BR> &#039;Write your error handling code here<BR> Response.Write cn.Errors(0).Description <BR> else &#039;Handle error generated by other sources<BR> Response.Write Err.Source & "//" & Err.Description <BR> end if<BR> <BR>else<BR> Response.Write "No errors occured"<BR>end if<BR>%&#062;<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default No

    ASP does not suport that.<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