ASP.NET(vb.net) & AdRotator - asp:AdRotator - asp:AdRotator : Displays an advertisement banner on a Web Forms page.
ShotDev Focus:
- ASP.NET(vb.net) & AdRotator - asp:AdRotator
Tag Control :
<asp:AdRotator id="Value" AdvertisementFile="AdvertisementFile" KeyWordFilter="KeyWord" Target="Target" OnAdCreated="OnAdCreatedMethod" runat="server"/>
Example
ads.xml
<Advertisements> <Ad> <ImageUrl>images/banner-001.gif</ImageUrl> <NavigateUrl>http://www.shotdev.com</NavigateUrl> <AlternateText>Banner 1</AlternateText> <Keyword>Banner 1</Keyword> <Impressions>3</Impressions> </Ad> <Ad> <ImageUrl>images/banner-002.gif</ImageUrl> <NavigateUrl>http://www.shotdev.com</NavigateUrl> <AlternateText>Banner 2</AlternateText> <Keyword>Banner 2</Keyword> <Impressions>80</Impressions> </Ad> <Ad> <ImageUrl>images/banner-003.gif</ImageUrl> <NavigateUrl>http://www.shotdev.com</NavigateUrl> <AlternateText>Banner 3</AlternateText> <Keyword>Banner 3</Keyword> <Impressions>80</Impressions> </Ad> </Advertisements>
AdRotator.aspx
<%@ Page Language="VB" %> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body> <form runat="server"> <asp:AdRotator id="AdRotator1" AdvertisementFile="ads.xml" BorderWidth="1" runat=server /> </form> </body> </html>
Screenshot