Simple AdRotator Example for Beginners

Sandhyab
Posted by Sandhyab under ASP.NET category on | Points: 40 | Views : 1086
<asp:AdRotator ID="Adrotator1" runat="server" AdvertisementFile="Advertisement.xml" ImageUrlField="ImageURL" KeywordFilter="Key"  NavigateUrlField="NavigateURL" AlternateTextField="AlternateText" BorderWidth="1" BorderColor="Green" />


xml File:
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageURL>http://t2.gstatic.com/images?q=tbn:ANd9GcSvPgGrJgrjj7PCFDh-1NWzSsshYJTmPZbIUOH6P73P4oq9jPEY</ImageURL>
<NavigateURL>http://www.google.co.in/</NavigateURL>
<AlteranateText>Go To this page</AlteranateText>
<Keyword>Key</Keyword>
<Impression>30</Impression>

</Ad>
<Ad>
<ImageURL>http://t0.gstatic.com/images?q=tbn:ANd9GcRNCq3MnC1Vbqbri693RYCBK0CdSr70vQ09p4AWfdWXpcSpKYbZAA</ImageURL>
<NavigateURL>http://www.w3schools.com/</NavigateURL>
<AlteranateText>Page</AlteranateText>
<Keyword>Key</Keyword>
<Impression>40</Impression>


</Ad>
<Ad>
<ImageURL>http://t1.gstatic.com/images?q=tbn:ANd9GcRieOnLImUG_bj7CRy2tYC2qQkCrh7e5-SSFtQg8A49GmhV2V5h</ImageURL>
<NavigateURL>http://www.dotnetfunda.com/</NavigateURL>
<AlteranateText>ItFunda</AlteranateText>
<Keyword>Key1</Keyword>
<Impression>40</Impression>


</Ad>
</Advertisements>

Comments or Responses

Login to post response