Tell me about Ad Rotator

liunx

Guest
hai every one
i am new to Asp.net
i came to hear about adRotator which is used to show ads on web pages
can u people help me with some articals which may help me to make use of adrotator my self
right now i want to show soem info which is brought from sql server and shown on the web page so that it may give a atomatic scrolling effect... can this be achived with the help of adrotator ......?
i donot know any thing about it so please help

thanks in advance

austinautomatic scrolling? If you are talking about what I am thinking of the only way to acheive it is an iframe and a meta refresh, the ad rotator is a server side thing, I do not know of any way to automatically change out the ad without the page being resent. Also if you did do it automatically it would make it hard to track impressions.

This is actually some code from a book I bought that I happened to have around
<!-- m --><a class="postlink" href="http://www.quasi-ke.servebeer.com/sampleaps/adrotator.aspx">http://www.quasi-ke.servebeer.com/sampl ... tator.aspx</a><!-- m -->
<!-- m --><a class="postlink" href="http://www.quasi-ke.servebeer.com/sampleaps/bannerads.xml">http://www.quasi-ke.servebeer.com/sampl ... nerads.xml</a><!-- m -->

<script runat="server">
Sub AdCreated_Event(ByVal Sender as Object, ByVal E as AdCreatedEventArgs)
Application("TotalAds") = Application("TotalAds") + 1
lblMessage.Text = "This is a sample ad banner roator. Below is an example at information that can be displayed with the ad. You would not need to modify this file except for what you want to display below the ad. The xml file controlling this application can be viewed <a href='http://www.webdeveloper.com/forum/archive/index.php/./bannerads.xml'>Here</a>" _
& "<br>Here is information on the ad " _
& "currently being displayed:<BR>" _
& "<BR>Alternate Text: " & E.AlternateText _
& "<BR>Image URL: " & E.ImageURL _
& "<BR>Navigate URL: " & E.NavigateURL _
& "<BR><BR>Total Ads Displayed: " _
& Application("TotalAds")
End Sub
</SCRIPT>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Rotator</TITLE>
</HEAD>
<BODY TEXT="black">
<form runat="server">
<Font Face="Tahoma">
<asp:adrotator
AdvertisementFile="bannerads.xml"
KeywordFilter="ShowMe"
Target="_blank"
OnAdCreated="AdCreated_Event"
BorderColor="blue"
BorderWidth=3
runat="server"
id="rotator"
/>
<BR><BR>
<asp:Label
id="lblMessage"
Font-Size="10pt"
Font-Name="Tahoma"
Font-Bold="True"
runat="server"
/>
</Font>
</Form>
</BODY>
</HTML>
 
Back
Top