Home | Advertising Info87 USERS CURRENTLY ONLINE   
   Site Search Contact Us Sunday, March 26, 2017  

User Management Application with web based screens that allow you to manage users.
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.

Try a free httpZip trial now and compress for less!

We didn't realize
the site was so popular.

Other Stuff

Active Server Pages what is asp programming how to sample asp example code scripts software asp forum mail sessions applications global.asa CJWSoft ASPProtect ASPBanner ASPClassifieds

(Advanced)  (Components)  (Database)  (General)  (Vbscript)


Subject: Trapping ADO errors
From: ann
Date: 8/8/2000 1:29:01 PM


Help. Can someone review my code. I want to trap any ADO error and return it as a message that is comprehensiable not
an Microsoft OLE DB error message.

Currently, I have the following code on my global.asa session_onstart:

on error resume next
lsConn = session("ConnectionString")
set lconn = server.CreateObject("ADODB.Connection")
lconn.ConnectionString = lsConn

lsSQL = "SELECT user_id, user_rights FROM csac_users" & _
" WHERE user_id = " & lsUser & ""

set rs = server.CreateObject("ADODB.Recordset")
rs.Open lsSQL, lsConn

set rs = lsConn.Execute(lsSQL)
if err.number>0 then
lsError = "There was an error processing the query. <p>" &_
"The SQL error was: & err.SQLState"
end if

p.s. Also, how would I go about showing an image instead of
an error message for any ADO error capture. Thanks for your help. I have been
pounding at this problem for days!!!!

Follow Up - Re: Trapping ADO errors - mc 8/9/2000 5:01:05 PM


   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2017 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com