2.0 SIMPLE PROBLEM: asp:Rotator

  • Thread starter Thread starter R.A.M.
  • Start date Start date
R

R.A.M.

Hello,
Could you help me please with a problem of asp:AdRotator usage? I have
little experience.

On Default.aspx page I have added AdRotator control to display banner
images:

<asp:AdRotator ID="Banner" runat="server"
AdvertisementFile="~/App_Data/Banner.xml" />

Here's Banner.xml:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Advertisements
xmlns="http://schemas.microsoft.com/AspNet/AdRotator-Schedule-File">
<Ad>
<ImageUrl>..\Images\DotNET_360x280_1.jpeg</ImageUrl>
<NavidateUrl>..\Welcome.aspx</NavidateUrl>
<AlternateText>Microsoft .NET 2.0</AlternateText>
<Impressions>1</Impressions>
</Ad>
<Ad>
<ImageUrl>..\Images\DotNET_360x280_2.jpeg</ImageUrl>
<NavidateUrl>..\Welcome.aspx</NavidateUrl>
<AlternateText>Microsoft .NET 2.0</AlternateText>
<Impressions>1</Impressions>
</Ad>
<Ad>
<ImageUrl>..\Images\DotNET_360x280_3.jpeg</ImageUrl>
<NavidateUrl>..\Welcome.aspx</NavidateUrl>
<AlternateText>Microsoft .NET 2.0</AlternateText>
<Impressions>1</Impressions>
</Ad>
<Ad>
<ImageUrl>..\Images\DotNET_360x280_4.jpeg</ImageUrl>
<NavidateUrl>..\Welcome.aspx</NavidateUrl>
<AlternateText>Microsoft .NET 2.0</AlternateText>
<Impressions>1</Impressions>
</Ad>
</Advertisements>

How can I set a time of single image display?

Thank you very much for your answers.
/RAM/
 
The images will only change each time the page is loaded. The Impressions
Element is a number that indicates the "weight" of the ad in the schedule of
rotation relative to the other ads in the file. The larger the number, the
more often the ad will be displayed.
 
Back
Top