Saturday, 25 November 2017

AdRotator Example

> AdvertisementFile: The path of the XML file in which you store the information of images.
>  AlternateTextField: A data field to use instead of the Alt text for an advertisement.
>  ImageUrlField: The name of the image url field in which image path is store.
>  NavigateUrlField: The name of the navigate url field in which navigate url is store.
>  Target: The target property specify frame that display the content of the AdRotator. It has four type
  _blank, _parent, _self, _top.

Example:
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>~/Images/image1.gif</ImageUrl>
<NavigateUrl>http://roseindia.net</NavigateUrl>
<AlternateText>Roseindia</AlternateText>
<Keyword>Site1</Keyword>
</Ad>
<Ad>
<ImageUrl>~/Images/image2.png</ImageUrl>
<NavigateUrl>http://www.google.com</NavigateUrl>
<AlternateText>Google</AlternateText>
<Keyword>Site2</Keyword>
</Ad>
</Advertisements>

No comments:

Post a Comment