The AdRotator control presents ad images that, when clicked, navigate to a new Web location. Each time the page is loaded into the browser, an ad is randomly selected from a predefined list. The rotation shedule of the adds is defined in a XML file.
The AdRotator control uses a separate XML advertisement file to store the advertisement information, such as the location of the image to display and the URL of the page to link to. The AdvertisementFile property of the AdRotator control specifies the path to this file.
When creating the advertisement file, opening and closing <Advertisements> tags mark the beginning and the end of the file, respectively. Opening and closing <Ad> tags delimit each advertisement. All advertisements are nested between the opening and closing <Advertisements> tags. If the file contains multiple <Advertisements> tags, only the first set of <Advertisements> tags in the file will be parsed by the AdRotator control. All other <Advertisements> tags will be ignored.
The data elements for each advertisement are nested between the opening and closing <Ad> tags. Although certain data elements are predefined (such as ImageUrl and NavigateUrl), you can place custom elements between the <Ad> tags. These elements will be read by the AdRotator control when it parses the file. The information is then passed to the AdCreated event in the AdProperties dictionary property.
WhitePapers/Blogs
Revision number 2, Monday, February 18, 2008 5:28:38 AM by vik20000in
You must Login to comment.
Revision #3
Mon, Feb 18, 2008 7:21 AM
by
|
Substitution
One of the new controls introduced with ASP.NET 2.0 was the Substitution control. By using this control, you can create pages that participate in output caching but also have regions designated to contain dynamic content that will be updated on every page
|
Revision #17
Tue, Feb 12, 2008 8:02 PM
by
|
Web Controls
Web controls are ASP.NET controls which are understood and compiled on the server and render as HTML markup on the page. Most of the web server controls render their own HTML controls (or many HTML controls). The markup that is output froma web control can
|