1. 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. Hi,

    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?


    1. @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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Check out the Commenting Guidelines before commenting, please!
  • Want to share code? Please put it into a GitHub Gist, CodePen or pastebin and link to that in your comment.
  • Just have a line or two of markup? Wrap them in an appropriate SyntaxHighlighter Evolved shortcode for your programming language, please!