Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 17th, 2003, 05:24 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Event Handling

Hi

I want to handle events of the AO Connection object in my ASP page. How can I do it?

Please help me out.

Thanks
- Anuj

 
Old July 18th, 2003, 02:05 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not completely sure I understand your question but a simple example of error event handling would be:

<%
Function DoSomething()
On Error Goto ErrorHandler

' ... some code ...
dbconn.open "<your connection string>"
' ... more db code ...

ExitHandler:
    Exit Function

ErrorHandler:
    ' You can decode the Err object here to determine the severity
    ' of your error.
    Response.Write(Err.Description)
    Resume ExitHandler
End Function
%>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Event Handling C# 2.0 [email protected] C# 2005 2 January 25th, 2008 11:37 AM
Event handling in Asp.net durbalshah ASP.NET 1.0 and 1.1 Basics 1 April 13th, 2007 06:30 AM
Event handling in c# bhavna VS.NET 2002/2003 1 March 7th, 2007 12:19 PM
Event handling in c# bhavna General .NET 1 March 7th, 2007 05:32 AM
Event Handling Bill Crawley ASP.NET 2.0 Basics 0 February 28th, 2007 07:32 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.