Latest MSDN Online Article - Building a ContentRotator ASP.NET Server Control

Published 21 September 05 10:07 AM | Scott Mitchell

My latest MSDN Online article is now available from the ASP.NET DevCenter: Building a ContentRotator ASP.NET Server Control. This article is on ASP.NET 1.x (gasp!) and looks at building a custom, compiled server control that can be used to randomly display various content. The content displayed can be vanilla HTML markup or dynamic content through the means of User Controls.

The impetus for this article was, in part, to resurrect the memory of classic ASP's AdRotator control. (Actually the AdRotator control is included in ASP.NET but gets no press.... curse the bursting of the dot com bubble!)

Enjoy!

Filed under:

Comments

# Don Burr said on January 16, 2011 04:35 AM:

I have looked at you algorithm; and used it to create a histogram to look at the distribution.

I used a content list of 1000 items with weights (impressions) ranging from 0 to 9 and then performed 10000 selections incrementing a counter for each weight bucket.

Unless I am missing something the ditribution in no way matches the weighting.

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Archives

My Books

  • Teach Yourself ASP.NET 4 in 24 Hours
  • Teach Yourself ASP.NET 3.5 in 24 Hours
  • Teach Yourself ASP.NET 2.0 in 24 Hours
  • ASP.NET Data Web Controls Kick Start
  • ASP.NET: Tips, Tutorials, and Code
  • Designing Active Server Pages
  • Teach Yourself Active Server Pages 3.0 in 21 Days

I am a Microsoft MVP for ASP.NET.

I am an ASPInsider.