This post originated from an RSS feed registered with .NET Buzz
by Scott Watermasysk.
Original Post: Random Book Control and RichContentRotator
Feed Title: ScottW's ASP.NET WebLog
Feed URL: /error.aspx?aspxerrorpath=/blog/rss.aspx
Feed Description: ASP.NET and Blogging
I wanted to add a list of great books to my blog, so I whipped up a little server control you can find here.
It’s really simple. It basically reads an XML file, grabs a random book, and displays it with a link back to Amazon.
At first, I was going to have it rotate through each book (show a book for 5 seconds or so and then move on to the next) but I got tired of looking at during the 10 minutes it took to write it, so I figured after a while, you the reader might get tired of it as well.
I still need to clean the code up a bit, but I will post it soon as well. I wrote the BookRotator control as a composite control using Cyberakt’s RichContentRotator. I need to post a more thorough review later, but I have to say I am quite impressed. It is very simple and easy to get going and comes with a bunch of nice examples. It is definitely a nice addition to your UI tool belt.