[This is preliminary documentation and subject to change]

## GetAllContent

The GetAllContent method retrieves all of the HTML content strings from the Content Schedule file and writes them directly to the Web page as a list with an <HR> tag after each entry.

This method is typically used during authoring, to proofread the Content Schedule file.

###### Syntax

ContRot.GetAllContent( content-schedule-path)

###### Parameters

content-schedule-path
  Specifies the location of the Content Schedule file.

  This parameter can be specified either as a relative or virtual path. For example, if the Content Schedule file, ContRot.txt, and the .asp file that called GetAllContent both resided in the directory /MyApp/Data/, where MyApp is a virtual root on the server, then either the full virtual path (/MyApp/Data/ContRot.txt) or the relative path (ContRot.txt) could be specified for content-schedule-path.

  The ContentRotator object calls the Server.MapPath method to map the specified path to a physical directory. For more information, see the Server Object Reference pages.

###### Return Values

None.

Note The Content Rotator component uses the Response.Write method to write output directly to the .asp page that called the GetAllContent method. For more information, see the Response Object reference page.

###### Example

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

--- ContRot_AllContent.asp ---

    <H1>Tips Stored in the Content Schedule File:</H1>
    <% Set objContRot = Server.CreateObject("MSWC.ContentRotator") %>
    <%=objContRot.GetAllContent("/Data/ContRot.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">
      Be like a
      <H1>duck</H1>
      calm on the surface, paddling like mad underneath.
    </FONT>
    <hr>
    <IMG SRC="http://zone.msn.com/graphics/hotgames_msn.gif">
    <hr>
    Here's the <A HREF="/data/controt.txt">secret link</A> to your content file.
    <hr>

© 1997-2001 Microsoft Corporation. All rights reserved.