home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / contrib / iis4 / iis4_07.cab / Components_JScript.asp < prev    next >
Encoding:
Text File  |  1997-09-03  |  835 b   |  36 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 sample demonstrates how to instantiate
  19.         and use components with ASP. The script will
  20.         use the Tools component that comes with IIS
  21.         to generate a random number.  Note that
  22.         server-side components exist only on the
  23.         server; only standard html is sent to the
  24.         client.<br><br>
  25.  
  26.  
  27.         <% 
  28.             // Instantiate Component on the Server
  29.             example = Server.CreateObject("MSWC.Tools")
  30.         %>
  31.         
  32.         Random Number = <% = example.Random() %>
  33.  
  34.     </BODY>
  35. </HTML>
  36.