Name

GetAllContent — objContentRotator.GetAllContent( strContentSchedFile)

Synopsis

Retrieves all the HTML snippets listed in the content schedule file. When you display the content from the call to GetAllContent, each snippet will be separated by a horizontal rule tag (<HR>) in the HTML.

Parameters

strContentSchedFile

A string value representing the virtual or relative pathname and filename of your content schedule file. You cannot use physical paths or absolute URLs (those beginning with http://, //, or \\) for this parameter.

Example

<HTML>
<HEAD>
<TITLE>Document List</TITLE>
<BODY>
<%

 ' Dimension local variables.
Dim objContentRotr
Dim strAllHTMLContent

' Create an instance of the Content Rotator object.
Set objContentRotr = _
    Server.CreateObject("MSWC.ContentRotator") 

' Retrieve all the quotes from the Quote content 
' schedule file for December. The call to GetAllContent 
' will separate each HTML snippet from the Content
' Schedule file with an <HR> tag.
strAllHTMLContent = objContentRotr.GetAllContent( _
                    "/SchedFiles/DecemberQuotes.txt")

' Now you can add the content thus retrieved to the 
' HTML sent to the client.
%>
All quotes:<BR>
<%= strAllHTMLContent %>
. . . [additional HTML and code]

Notes

The primary use for this method is for maintenance of the content schedule file.

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.