468,315 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

How to display a News Feed on my web site

Does anybody know how I can display a news feed such as:

http://p.moreover.com/cgi-local/page...0news&o=rss002

and others on my VB.Net web site?

Is there any code available that I can use to do this?
Thanks, Mike.
Jun 8 '06 #1
3 1261
Hi Mike,

Thank you for your post.

The simplest way to display rss feeds on your ASP.NET website is using the
new Data Source control XmlDataSource, for example:

<asp:XmlDataSource id="XmlDataSource1" DataFile="msdn.xml"
XPath="rss/channel/item" runat="server" />

<asp:DataList id="DataList1" runat="server" DataSourceId="XmlDataSource1">
<ItemTemplate>
<b><%# XPath("pubDate") %> - <%# XPath("title") %> </b>
<br/>
<%# XPath("description") %>
</ItemTemplate>
</asp:DataList>

Also, you may take a look at following article which describes how to
create a User Control to display rss feeds:

#Coding4Fun: A Simple RSS Feed
http://msdn.microsoft.com/coding4fun...s/default.aspx

Hope this helps. If anything is unclear, please feel free to post here.
Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #2
Thanks Walter - Did the trick nicely!

Cheers, Mike.

"Walter Wang [MSFT]" wrote:
Hi Mike,

Thank you for your post.

The simplest way to display rss feeds on your ASP.NET website is using the
new Data Source control XmlDataSource, for example:

<asp:XmlDataSource id="XmlDataSource1" DataFile="msdn.xml"
XPath="rss/channel/item" runat="server" />

<asp:DataList id="DataList1" runat="server" DataSourceId="XmlDataSource1">
<ItemTemplate>
<b><%# XPath("pubDate") %> - <%# XPath("title") %> </b>
<br/>
<%# XPath("description") %>
</ItemTemplate>
</asp:DataList>

Also, you may take a look at following article which describes how to
create a User Control to display rss feeds:

#Coding4Fun: A Simple RSS Feed
http://msdn.microsoft.com/coding4fun...s/default.aspx

Hope this helps. If anything is unclear, please feel free to post here.
Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #3
Hi Mike,

I'm glad that helped.

Have a nice day!
Regards,
Walter Wang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by affiliateian | last post: by
1 post views Thread by paul.hester | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.