Content Schedule File

The content schedule file contains HTML snippets that the Content Rotator component retrieves and displays to the client. Each HMTL snippet is in the following format:

%% [#uintWeight]   [//Comment]
HTMLContentString

where:

%%

Signals the beginning of an HTML snippet. Each entry must begin with the double percent sign or the Content Rotator component cannot distinguish it from the previous snippet.

# uintWeight

A pound sign followed by an unsigned integer value (between 1 and 65,535) that represents the relative weight of the current HTML snippet. This optional parameter represents the relative probability that the Content Rotator component will select this HTML snippet from the list of snippets. The actual probability of this HTML snippet being selected by the Content Rotator component is uintWeight divided by the total of all the snippets' weights. For example, assume you have three snippets with weights of 33, 34, and 33. The first snippet would be selected 33% percent of the time, the second 34% percent, and the third 33% of the time. If a snippet's weight is zero, that snippet is never chosen. The default weight is 1.

// Comment

An optional string of comments describing the HTML snippet or its relevance. It is for your use in maintaining the content schedule file and is never displayed to the client. If a snippet requires more than one line of comments, start each comment with a double percent sign (%%) followed immediately with a double forward slash ( ...

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.