Easy Tutorial
❮ Met Websecurity Logout Control Hyperlink ❯

ASP.NET AdRotator Control



Definition and Usage

The AdRotator control is used to display a sequence of images.

This control uses an XML file to store ad information. The XML file starts and ends with the <Advertisements> tag. Inside the <Advertisements> tag, there should be several <Ad> tags defining each ad.

The predefined elements in the <Ad> tag are listed below:

Element Description
<ImageUrl> Optional. The path to the image file.
<NavigateUrl> Optional. The URL linked when the user clicks the ad.
<AlternateText> Optional. The alternative text for the image.
<Keyword> Optional. The category of the ad.
<Impressions> Optional. The display probability.

Properties

Property Description .NET
AdvertisementFile The path to the XML file containing ad information. 1.0
AlternateTextField The data field used instead of the ad's Alt text. 2.0
ImageUrlField The data field used instead of the ad's ImageURL property. 2.0
KeywordFilter Filters ads by category. 1.0
NavigateUrlField The data field used instead of the ad's NavigateUrl property. 2.0
runat Specifies that the control is a server control. Must be set to "server". 1.0
Target Specifies where to open the URL. 1.0

Web Control Standard Properties

For a complete description, visit Web Control Standard Properties.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Try It - Example

AdRotator


❮ Met Websecurity Logout Control Hyperlink ❯