4 thoughts on “Creating An ASP.NET RSS Feed, Using Data From SQL Server And HTTP WebHandler

  1. Mr. G

    Doug Vanderweide….. my new best friend.

    I had a terrible time today finding an example that would process the cdata in an rss feed. I found this after i lost hope. and its in Vb.net. goodness!

    I found this good example at msdn but could not get it to parse the cdata correctly. But your works right.

    Thank you for taking the time to put this out there. Much appreciated.

  2. Benjamin LECOQ (@benlecoq)


    I wrote the code succesfully to adapt to my application but I have not idea how to register to IIS7… there are many option and many articles all with different approach. This ASHX does not have code behind. You fin only instructions on internet with Compiled handlers.

    Could you give me instructions please?


  3. Doug Vanderweide Post author

    @Benjamin: An ASHX page works exactly like an ASPX page, and you call it the same way your would any other ASPX page / URL.

    As the article explains, you can create an IIS module, and you should if your RSS feed is going to see a lot of traffic. An ASHX page is an alternative to using an IIS module, one that more than suffices for low-traffic uses. You don’t install an ASHX or compile it; you treat it just like it’s an ASPX page.

    So all you need to do is put the ASHX page on your website and call it like you would any ASPX page. For example, if your site is example.com, your ASHX file is named feed.ashx, and you put it in the root directory of your website, you access it via http://example.com/feed.ashx.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Current ye@r *