The AdRotator Control
The AdRotator control allows you to display a randomly selected image, selected from a list contained within an XML file, each time your page is rendered. You supply the images and the XML file containing information about the images, and the ASP.NET page framework handles the rest. You can apply filters dynamically so that you can limit the images to subsets of your choosing, as well. In the sample page, AdRotatorControl.aspx, you can select to show images of either male or female employees (or both) randomly selected from a list of images in an XML file (see Figure 22.3).
Figure 22.3. The AdRotator control allows you to cycle through a series of images.
To use the AdRotator control, you place the control on a page and ...
Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.