Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Examples: ASP Content Rotator Component GetAllContent Method

The following example uses the GetAllContent method to display all entries in the Content Schedule file.

<H1>Tips Stored in the Content Schedule File:</H1>
<% 
 Set Tips = Server.CreateObject("MSWC.ContentRotator")
 Tips.GetAllContent("/MyApp/Tips/Content.txt") 
%>

The preceding example produces HTML output such as the following:

<H1>Tips Stored in the Content Schedule File:</H1>
<HR>
Don’t run with scissors.
<HR>
<FONT FACE="ARIAL,HELVETICA" SIZE="2">
 Let a
 <H1>smile</H1>
 be your umbrella.
</FONT>
<HR>
<IMG SRC="/images/happy.gif">
<HR>
Here’s the <A HREF="secret.asp">secret link.</A>
<HR>


ContentsPreviousNextIndex