This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: NewsGator Ratings Control for .TEXT
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
As I said a couple of days ago, I'm doing a bunch of work on my blog code. One of the things I wanted to have was an integrated Newsgator ratings system.
It turns out that it isn't all that hard to do, provided you have access to your skin's source files (sorry to those of you on hosted .TEXT sites--ask your blog admin to add this control for you).
To get this working you need to create a new .ASCX file in your skin's Controls directory. Put the following code into it (sorry for all the funny line breaks... I wanted it to fit in my blog... reformat it as you see fit). Note: you have to split up the "<" from the "script>" part or the ASP.NET parser won't compile correctly.
Now to use it in your blog, you need to add this control to some of the existing ASCX files. I'll demonstrate two for you and let you figure out the rest on your own.
Here is my new Day.ascx file:
1: <%@ Control Language="c#" Inherits="Dottext.Web.UI.Controls.Day" %>