ASP.NET RSS Toolkit(RSS工具)

还记得以前吗?以前要做页面上写个小组件,调用指定(RSS输出地址的)的内容。最好的办法就是通过XSLT+XML来输出字符 串。让我们还是花了一分钟的时候回忆一下以前的做法吧

曾经的做法:
XSLT转换文件

而现在。根据MS的想法。一切只要拖拖控件就能完成我们的所要功能(我一向不喜欢这样,还是自己DIY好)。所以。下面介绍这款小工具:ASP.NET RSS Toolkit
RSS TOOLKIT主要是从服务器上装载RSS输出(XML格式输出),生成数据集,然后填充到DATALIST控件当中。另外它支持数据缓存的功能
目前最新版本:1.0.0.1
新的特性:
•    Added MaxItems property to RssDataSource to limit the number of items returned.
•    Added automatic generation of 
<link> tags from RssHyperLink control, to light up the RSS
toolbar icon in IE7. For more information please see http://blogs.msdn.com/rssteam/articles/PublishersGuide.aspx
•    Added protected Context property (of type HttpContext) to RssHttpHandlerBase class, to allow access to the
HTTP request while generating a feed.
•    Added generation of LoadChannel(string url) method in RssCodeGenerator so that one strongly typed
channel class can be used to consume different channels.
•    Fixed problem expanding app relative (~/…) links containing query string when generating RSS feeds.
下载地址:点击下载
详细说明:http://weblogs.asp.net/scottgu/archive/2006/02/22/438738.aspx

创建新的页面

为datalist控件创建新的数据源

选择rssDataSource

输入RSS地址(我这里以http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml)


根据RSS输出的格式,进行绑定


OK。现在可以浏览一下效果


晚上出去吃晚饭的时候。走出外面,感觉到夏天的来到。呵。我喜欢夏天的这种感觉。带上好的心情,出去走走。也是一种很好的享受。最后。推荐一首歌:夏天的味道。

posted on 2006-03-26 21:40 小春 阅读(3760) 评论(6) 编辑 收藏

评论

#1楼  回复 引用 查看   

cool! 谢谢推荐
2006-03-26 22:07 | Aero      

#2楼  回复 引用 查看   

nice
2006-03-27 00:19 | 秋雨飘飞      

#3楼  回复 引用 查看   

怎么你们那里的夏天来得这么快?广州还是处于春雨连绵的状态.
2006-03-27 09:22 | 小残      

#4楼  回复 引用   

呵呵。应该说还是春天的感觉。呵呵。我喜欢现在傍晚的气候。
2006-03-27 10:48 | 春[未注册用户]

#5楼  回复 引用 查看   

thanks~
happy every day!
2009-02-24 16:54 | 米虫      

#6楼  回复 引用   

不错
2009-08-21 23:52 | 啊啊啊[未注册用户]

导航

<2006年3月>
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678

公告

昵称:小春
园龄:8年
粉丝:4
关注:0

搜索

 
 

常用链接

我的标签

随笔分类

随笔档案

个人Blog

喜欢的网站

积分与排名

  • 积分 - 245628
  • 排名 - 315

最新评论

推荐排行榜