asp.net 页面中生成 RSS 2.0

Figure 1 Sample RSS 1.0 Document



The XML Files http://skonnard.com/blog by Aaron Skonnard









skonnard.com http://skonnard.com/blog http://skonnard.com/blog/images/image.gif


1st blog entry http://skonnard.com/blog/entry1 This is my first blog entry.
2004-01-13T17:16:44.9803903-07:00


2nd Blog Entry http://skonnard.com/blog/entry1 This is my second blog entry.
2004-01-13T17:16:45.9803903-07:00

——————————————————————————–
Figure 2 Sample RSS 2.0 Document



The XML Files http://Skonnard.com/blog by Aaron Skonnard

http://skonnard.com/blog/images/image.gif
skonnard.com http://skonnard.com/blog/

1st blog entry http://skonnard.com/blog/entry1 This is my first blog entry. Wed, 14 Jan 2004 17:16:44 GMT


2nd blog entry http://skonnard.com/blog/entry1 This is my second blog entry Wed, 14 Jan 2004 17:16:45 GMT


——————————————————————————–
Figure 3 Sample Atom 0.3 Feed


The XML Files http://skonnard.com/blog/ 2004-01-13T17:16:45.0004199-07:00
by Aaron Skonnard

Aaron Skonnard


1st blog entry http://skonnard.com/blog/entry1 2004-01-13T17:16:44.9803903-07:00

This is my first blog entry





2nd blog entry http://skonnard.com/blog/entry2 2004-01-13T17:16:45.9803903-07:00

This is my second blog entry




——————————————————————————–
Figure 4 Sample Blogroll (OPML)


Aaron’s Favorite Blogs





——————————————————————————–
Figure 5 Generating an RSS 2.0 Feed in ASP.NET

<%@ Page language="c#" Codebehind="rss.aspx.cs" AutoEventWireup="false" Inherits="SimpleBlog.rss" %>


My Blog http://localhost/simpleblog/default.aspx A weblog about nothing…
en-us



<%#DataBinder.Eval(Container.DataItem, "title")%>
<%#DataBinder.Eval( Container.DataItem,"description")%> <%#DataBinder.Eval(Container.DataItem, "pubdate") %> <%# DataBinder.Eval(Container.DataItem, "link") %>




——————————————————————————–
Figure 6 RSS Aggregator Web User Control

<%@ Control Language="c#" AutoEventWireup="true" EnableViewState="false" Debug="true"%>
<%@ Import namespace="System.Xml" %>
<%@ OutputCache Duration="1800" VaryByParam="none" %>

UNUG Blogs



本文固定链接: http://www.ntxz.net/?p=1599 | 周忞 | 吉心的记事本



该日志由 吉心 于2011年05月23日发表在 .NET 分类下, 你可以发表评论
在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: asp.net 页面中生成 RSS 2.0 | 周忞 | 吉心的记事本
关键字: ,

asp.net 页面中生成 RSS 2.0:等您坐沙发呢!

发表评论

您必须 [ 登录 ] 才能发表留言!