Creating a "What I'm Reading" Widget

Posted by: Headlines, on 04 Feb 2009 | View original | Bookmarked: 0 time(s)

A number of personal websites and blogs have a "What I'm Reading" section, where the site owner lists books he's currently reading. Typically these widgets include a cover image of the book, the title and author, and a link the web visitor can click to buy the book or learn more about it. I recently needed to create a similar sort of widget for a website I was working on. This website did not require anything overly fancy, it just needed a simple administrative interface where the website administrator could enter book information and a User Control that he could drop on a web page that would display his current reading queue.

The solution I created uses an XML file to store information about the books displayed in the "What I'm Reading" User Control. The User Control uses a ListView and an XmlDataSource to display the books in the XML file in a series of <div> elements. And the administration page use a ListView control and the LINQ to XML library to provide a web-based interface for adding, updating, and deleting data from this XML file.

This article looks at how I built the User Control and administration interface. The complete source code (in C#) and a demo application is available for download. Read on to learn more!
Read More >

Category: XML | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1878 | Hits: 22

Similar Posts

  • A new approach to build iGoogle/Facebook like sites with Asp.Net: Kalitte Widget Toolkit more
  • Create dynamic web applications like iGoogle or Facebook with open-source widget library. New relase is available. more
  • Graffiti 404 Manager more
  • BlogEngine.NET 1.4 released more
  • Nothing beats a good book more
  • FogBugz 6 Recognizes Estimates And Actuals Are Not Bounded Evenly On Both Sides more
  • SharePoint Workflow as Commodity more
  • Mono Happenings more
  • What are you reading more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD