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

  1. <%@ LANGUAGE = JScript %>
  2.  
  3. <HTML>
  4.     <HEAD>
  5.         <TITLE>Using Components</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>Using Components with ASP</b></font><br>
  15.       
  16.         <hr size="1" color="#000000">
  17.  
  18.         This script use the Tools component 
  19.         that comes with IIS to generate a random number.
  20.         <br>
  21.         <br>
  22.  
  23.  
  24.         <% 
  25.             // Instantiate Component on the Server
  26.             example = Server.CreateObject("MSWC.Tools");
  27.         %>
  28.         
  29.         Random Number = <% = example.Random() %>
  30.  
  31.     </BODY>
  32. </HTML>
  33.