web 2.0

ASP.NET(vb.net) & AdRotator - asp:AdRotator

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

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

ASP.NET(vb.net) & AdRotator - asp:AdRotator
.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.