Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Implementing Error Trapping

Status
Not open for further replies.

tycaine

Programmer
Feb 8, 2003
29
0
0
CA
Relatively new to ASP, and want to implement error trapping on pages of my site that connect to an Access Database.

I would like to trap the errors that happen when the page tries to connect to the database, as my host has occasionally had a problem (most recently with a problem to do with the MS Access Database ODBC Driver) and the user ends up getting a rather uninformative message...

Can anyone help me out?

Thanks in advance!

Ty Caine
 
As always, my first suggestion is - use Javascript ASP, not VBScript ASP!

Then you can use try/catch (assuming the server is running a new enough scripting engine version).

(It's just more elegant anyway).

codestorm
Newbie Life Member.
Fire bad. Tree pretty. - Buffy
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top