home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / SimpleTransaction_VBScript.asp < prev    next >
Text File  |  1997-10-25  |  1KB  |  51 lines

  1. <%@ TRANSACTION=Required LANGUAGE="VBScript" %>
  2.  
  3. <HTML>
  4.     <HEAD>
  5.         <TITLE>Simple Transactional Web Page</TITLE>
  6.     </HEAD>
  7.  
  8.     <BODY BGCOLOR="White" topmargin="10" leftmargin="10">
  9.  
  10.  
  11.         <!-- Display Header -->
  12.  
  13.         <font size="4" face="Arial, Helvetica">
  14.         <b>Simple Transactional Web Page</b></font><br>
  15.       
  16.         <hr size="1" color="#000000">
  17.  
  18.  
  19.         <!-- Brief Description blurb.  -->
  20.  
  21.         This is a simple example demonstrating the basic
  22.         structure of a Transacted Web Page.  
  23.  
  24.     </BODY>
  25. </HTML>
  26.  
  27.  
  28. <%
  29.     ' The Transacted Script Commit Handler.  This sub-routine
  30.     ' will be called if the transacted script commits.
  31.     ' Note that in the example above, there is no way for the
  32.     ' script not to commit.
  33.  
  34.     Sub OnTransactionCommit()
  35.         Response.Write "<p><b>The Transaction just comitted</b>." 
  36.         Response.Write "This message came from the "
  37.         Response.Write "OnTransactionCommit() event handler."
  38.     end sub
  39.  
  40.  
  41.     ' The Transacted Script Abort Handler.  This sub-routine
  42.     ' will be called if the script transacted aborts
  43.     ' Note that in the example above, there is no way for the
  44.     ' script not to commit.
  45.  
  46.     Sub OnTransactionAbort()
  47.         Response.Write "<p><b>The Transaction just aborted</b>." 
  48.         Response.Write "This message came from the "
  49.         Response.Write "OnTransactionAbort() event handler."
  50.     end sub
  51. %>