Awesome ASP.NET 2.0 RSS Tool-Kit Released
page 5 of 8
by Scott Guthrie
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 34109/ 40

Personalized RSS Feed Integration with ASP.NET Authentication System

 

One of the tricks people are doing these days with RSS is to enable people to subscribe to feeds that are personalized for them.  They often do this by adding a query-string parameter to the RSS feed that contains a unique identifier to map the URL to a specific account name on the server (allowing a user for example to publish and subscribe to their private calendar or task-list or contact-list information).

The RSS Toolkit allows you to easily build these types of apps and integrate them with the ASP.NET membership and authentication system.  Note how in the handler above there is a “username” parameter to the PopulateChannel method.  ASP.NET will look for an encrypted username value on the incoming RSS feed URL, and automatically decrypt and pass the username to this method when it is supplied (you could then write code within this method to hit a database and pull back only the items for that particular user).

To embed the encrypted user-name within the RSS feed URL, you can either get the value via an API call, or generate the RSS URL link using the new declarative RSSHyperlink control and setting the IncludeUserName=”true” property to true:

Listing 6

<RssToolKit:RssHyperLink runat="server" IncludeUserName="True"
NavigateUrl="~/scenario6.ashx">Personalized RSS Feed Sample</RssToolKit:RssHyperLink>

When a user clicks on this feed it will include their username encrypted within the URL.  When they copy/paste the feed link into a blog reader (for example: to subscribe to it), it will then remember the user’s identity and allow them to always have a personalized view of the data.


View Entire Article

User Comments

Title: Jeff Paul Scam   
Name: Jeff Paul Scam
Date: 2009-03-04 8:28:42 PM
Comment:
This post gave us a major Brainstorm session of all the possibilities we can utilize on our blog.
Title: How to download the updated feeds?   
Name: Abhilash
Date: 2009-02-26 4:06:39 AM
Comment:
Hi,
Article was nice. I must say.

Do you missed something additional?I mean...how we download the updated feeds only?

Is such a feature missing in it ?

Looking forward for your response.
Thankz.
Title: Any VB   
Name: Stephanie
Date: 2008-05-21 10:20:24 AM
Comment:
I am looking for a VB version

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-18 7:51:14 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search