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

  1. <%@ TRANSACTION=Required LANGUAGE="JScript" %>
  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 function
  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.     function OnTransactionCommit()
  35.     {
  36.         Response.Write ("<p><b>The Transaction just comitted</b>.");
  37.         Response.Write ("This message came from the ");
  38.         Response.Write ("OnTransactionCommit() event handler.");
  39.     }
  40.  
  41.  
  42.     // The Transacted Script Abort Handler.  This function
  43.     // will be called if the script transacted aborts
  44.     // Note that in the example above, there is no way for the
  45.     // script not to commit.
  46.  
  47.     function OnTransactionAbort()
  48.     {
  49.         Response.Write ("<p><b>The Transaction just aborted</b>."); 
  50.         Response.Write ("This message came from the ");
  51.         Response.Write ("OnTransactionAbort() event handler.");
  52.     }
  53. %>