Controls You Can Use on Web Forms ASP.NET Standard Controls AdRotator Control
First you add the AdRotator control to a page, and then link it to the ads you wish to display. Link ads to the control either by using a separate XML file containing the ad information or by linking the ads to the control within an event handler at run time.
- Declare an <
asp:AdRotator > element on the page. For syntax, see AdRotator Control Syntax.
- Set the AdvertisementFile property to the location of the XML ad schedule file.
- If the AdvertisementFile property is set to an XML file, then the AdCreated event occurs after the ad has been selected.
- Alternatively, you can set the ad properties in the AdCreated event.
Creating an Ad List for the Ad Rotator Web Server Control
|