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

Get ASP.NET by Example 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.