O'Reilly logo

ASP.NET by Example by Steven A. Smith

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

Introduction to Rich Controls

Unlike ASP.NET list controls, which all inherit from ListControl and therefore share specific common functionality, the rich controls discussed in this chapter are inherited from WebControl, so they have very little in common with one another except for providing more advanced functionality than intrinsic or list controls. We'll begin by discussing AdRotator and the changes to ad rotation since ASP 3.0.

Working with AdRotator

You'll recall that previous versions of ASP provided ad rotation functionality. However, as with all the other Active Server Components provided by Microsoft, it was in the form of a scriptable COM object used from within <%...%> tags, as shown in Listing 7.1.

Listing 7.1. Declaring the AdRotator ...

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