472,958 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1405
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.