Wednesday, July 21, 2004

Creating the advertisement xml file using Adrotator Control (ASP. NET)

 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: 

 -------------------------------------------------------------------------- 
The 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 
 
img1.jpg 
http://www.gotothispage.com 
This is alt text for the first ad 
marbles 
 
 
logo.gif 
http://www.nogotothispage.com 
This is alt text for the second ad 
web development 
 
 

------------------------------------------------------------------------- 
The advertisement file consists of the following elements: 

 * This tag should surround all ads within your file. 
This is called the root element. 

 * This tag contains all the attributes for a single ad within 
your ad list. 

 * The path of the image file that will be displayed. 

 * The URL that the image file will link to. 

 * 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. 

 * This is what the KeywordFilter property of the 
tag searches for when filtering ads to display on a page. 

 * This property specifies the relative number of times 
this ad compared to the other ads. 

 
Regard's 


No comments: