ASP.NET AdRotator Control Using LINQ
In Asp.Net the AdRotator control is used to display a sequence of images . We can display the images by using XML file or by using Database.
First we will have a look at a sample XML advertisement file that is used by the adrotator control in ASP.Net.
This AdRotator control uses an XML file to store the advertisement information. The important thing in XML file is that it must begin with <Advertisements> and ends with </Advertisements>.The predefined elements inside the tag are listed below:
<ImageUrl>This is used for the path of the image file
<NavigateUrl>This is used if the user clicks the ad it navigates to the respective page.
<AlternateText>This can be used as an alternate text for the image
<Impressions>This can be used to display the ads in percent of the hits
<Keyword>This is optional and used for to categorise.
No comments
