-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: Ritesh_Kesharwani
Message 2 in Discussion
Hi
Fellow below step for make the images to be displayed in a timed fashion
There are two steps to using the AdRotator on your page: creating an
instance of the AdRotator web control on the page and creating the
advertisement xml file.
Creating an Instance of the AdRotator Web Control
The following code should be inserted on each aspx page you would like the
ad to appear on:
<asp:AdRotator id=AdRotator1 AdvertisementFile="ads.xml" runat="server" />
----------------------------------------------------------------------------
---------------
The <asp:AdRotator> tag accepts the following properties:
* ID: The unique identifier for the AdRotator control.
* AdvertisementFile: The path of the advertisement file that contains
information about each ad.
* KeywordFilter: This property allows you to display ads based on a
keyword property that is set in the advertisement file.
That's about all it takes to add the AdRotator control to the page. Now onto
the Advertisement file.
Creating the Advertisement File
The advertisement file used by the AdRotator is a simple XML file that
should use the following format:
ads.xml
<Advertisements>
<Ad>
<ImageUrl>img1.jpg</ImageUrl>
<NavigateUrl>http://www.gotothispage.com</NavigateUrl>
<AlternateText>This is alt text for the first ad</AlternateText>
<Keyword>marbles</Keyword>
<Impressions></Impressions>
</Ad>
<Ad>
<ImageUrl>logo.gif</ImageUrl>
<NavigateUrl>http://www.nogotothispage.com</NavigateUrl>
<AlternateText>This is alt text for the second ad</AlternateText>
<Keyword>web development</Keyword>
<Impressions></Impressions>
</Ad>
</Advertisements>
-------------------------------------------------------------------------
The advertisement file consists of the following elements:
* <Advertisements> This tag should surround all ads within your file.
This is called the root element.
* <Ad> This tag contains all the attributes for a single ad within
your ad list.
* <ImageUrl> The path of the image file that will be displayed.
* <NavigateUrl> The URL that the image file will link to.
* <AlternateText> The ALT text for the image. This will be displayed
when a user hovers over the image or if the image can not be found.
* <Keyword> This is what the KeywordFilter property of the
<asp:AdRotator> tag searches for when filtering ads to display on a page.
* <Impressions> This property specifies the relative number of times
this ad compared to the other ads.
Regard's
Ritesh Kesharwani
SQL Star Intlernational Ltd.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.Riteshk.blogspot.com
Cell - 9849976150
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]