Chapter 17. Content Rotator Component

More often than not, the greatest challenge facing a webmaster has little to do with the technology running her web site. The biggest challenge is providing enough different content quickly enough so that her clients keep coming back to the site and keep telling others about the site. Clients today have millions of sites to choose from—often several hundred on any given subject. Why frequent yours if the content doesn't change often enough to make the few clicks it takes to get there worth the effort?

One solution to this problem is to provide, on a regular basis, a small change to your web site or its more popular pages. This small change—if clever or original enough—can keep a user on the site just long enough for him to see something that he may not have seen before—even if the content in question has been present for some time. More important, for some sites this change could keep the user long enough to notice an advertisement and click on it.

If the change is really clever, the user may frequent your site (and see your content and view your sponsors' advertisements) just to see that small change in content.

Microsoft recognized this strategy as a common one and introduced an Active Server Pages component that makes rotating HTML content on an otherwise-unchanging document very easy. The server component is called the Content Rotator component. This component, in conjunction with a content schedule text file, allows you to set up a simple ...

Get ASP in a Nutshell, 2nd Edition 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.