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

  1. <%@ LANGUAGE = VBScript %><% Option Explicit %><% Response.Buffer = True %>
  2.  
  3. <% ' Note: the call to turn buffering on must happen before any content of the page %>
  4.  
  5. <HTML>
  6. <HEAD>
  7. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  8. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  9. <TITLE>Java Component Samples: ExpirePage</TITLE>
  10. </HEAD>
  11. <BODY>
  12.  
  13. Using the Java ASP Component Framework to manipulate date/times:<P>
  14.  
  15. (The scenario here is that this page lists information relevant for the current year only, 
  16. so we want to have it expire right at the beginning of the next year.)<P>
  17.  
  18. <%
  19.  
  20.     Dim Obj
  21.  
  22.     Set Obj = Server.CreateObject("IISSample.ExpirePage")
  23.  
  24.     Obj.expireAtYearEnd
  25.  
  26. %>
  27.  
  28. </BODY>
  29. </HTML>
  30.