Introduction The AdRotator is a special purpose control in ASP.NET that is used to display flashing Banner ads. The control is capable of displaying ads randomly or sequentially as set by the users. Each time the page is refreshed or reloaded a new ad can be displayed to the user. We can also assign priorities to the ads in such a way that certain ads are displayed frequently than others. The class Hierarchy for AdRotator control is shown below.
To be able to use an AdRotator control. You will have to create an AdRotator file that determines what ads are displayed and in what proportions these ads are displayed. An ad file for an AdRotator control must follow a very specific structure. First you need to save the file with a .xml extension. Then note the name of the file as you will use it in code when you create an ad file. Getting Started
Output Summary In this article you learned that how can you use a custom tag in AdRotator control.