O'Reilly logo

ASP.NET Developer's JumpStart by Ken Getz, Paul D. Sheriff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required