How to use an AdRotator in ASP.NET?
Saturday, March 8th, 2008The AdRotator control is used to display a sequence of ad images.
This control uses an XML file to store the ad information. The XML file must begin and end with an <Advertisements> tag. Inside the <Advertisements> tag there may be several <Ad> tags which defines each ad.
<asp:AdRotator id=”AdRotator1″ AdvertisementFile=”adrot.xml”
runat=”server” Width=”468px” Height=”60px”></asp:AdRotator>
adrot.xml
<Advertisements>
<Ad>
<ImageUrl>b2346.jpg</ImageUrl>
<NavigateUrl>http://ww.tryangled.com</NavigateUrl>
<AlternateText>
The site for ASP.Net FAQs
</AlternateText>
<Impressions>5</Impressions>
</Ad>
</Advertisements>