473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1419
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Anthony | last post by:
I am trying to make a simple page display a rss news feed.. I don't want the web server to connect to remote site because it doesn't work. I want the client to do it because my web server is behind...
1
by: Anthony | last post by:
Sorry about the repost but i didn't get any responses.... I am trying to make a simple page display a rss news feed.. I don't want the web server to connect to remote site because it doesn't...
7
by: Winston | last post by:
Hi, I want to use the Webbrowser Control (the Internet Explorer Control) to display an XML-structure within a C# WinForm. The way the IE displays a XML-file in its native form is exactly what I...
1
by: hp_1981 | last post by:
Hi My website is a web directory like dmoz and yahoo directory. Can I let webmasters or even weblog owners to have a copy of my site, allowing them to present it the way they want to, by...
0
by: Zaphod | last post by:
greetings! My question is this; I have a rss news feed up and running on a website, but I would like to sift through the 30-40 items provided and display only the ones with a certian word in the...
6
by: affiliateian | last post by:
Total newbie here for this so please be patient. We manually update our XML feed when we publish an article on our website. Can we add a javascript tracking pixel (from phpadsnew) into the XML...
0
by: gomzi | last post by:
I would like to know if its possible to display an atom feed using asp.net 2.0? Tried a lot, but m not able to display any atom feed. My code works perfectly for rss feeds. any help would be...
1
by: Joey | last post by:
Ok, so here is an RSS feed for top stories from a local news station. http://lex18.com/Global/category.asp?C=88362&clienttype=rss I need to display this data on my own website. I know ASP, but ...
1
by: paul.hester | last post by:
Hi all, I work for a classified-type site and am planning on having an RSS feed for each category. I understand the basics of RSS, but I can't decide how often to update each RSS feed. Each...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.