[Javascript] Q on ADO and databases and Errors

darren darren at web-bitch.co.uk
Fri Feb 7 05:46:29 CST 2003


On Friday, February 7, 2003 at 03:27, Walter Torres wrote:

this question's probably better asked on an asp list...

WT> I have code that does (almost) everything I need it to around my database...
WT> open, close, query, stored procedures, etc.

WT> What I don't have, and can't find, is how to handle errors.

you need to tell asp to ignore the errors so you can handle them
explicitly.  try adding:

   on error resume next // this will ignore all errors that occur
      // your code here
   on error goto 0      // this will re-enable asp's error handling
   
WT> All the examples I find on the net are in VB! Even the "Professional
WT> JavaScript" book has its examples (for this question) in VB!

one site you might want to take a look at is james shaws coveryourasp.com
which was written in jscript.

hth,

darren.




More information about the Javascript mailing list