473,657 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1433
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:XmlDataSou rce id="XmlDataSour ce1" DataFile="msdn. xml"
XPath="rss/channel/item" runat="server" />

<asp:DataList id="DataList1" runat="server" DataSourceId="X mlDataSource1">
<ItemTemplate >
<b><%# XPath("pubDate" ) %> - <%# XPath("title") %> </b>
<br/>
<%# XPath("descript ion") %>
</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:XmlDataSou rce id="XmlDataSour ce1" DataFile="msdn. xml"
XPath="rss/channel/item" runat="server" />

<asp:DataList id="DataList1" runat="server" DataSourceId="X mlDataSource1">
<ItemTemplate >
<b><%# XPath("pubDate" ) %> - <%# XPath("title") %> </b>
<br/>
<%# XPath("descript ion") %>
</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
1458
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 a proxy (Tried proxycfg.exe on web server with no success) I am going nuts.. something that should be so simple for me... The following will just not work and I give up.. so now I want client side code (Unless someone can fix my problem):...
1
2539
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 work. I want the client to do it because my web server is behind a proxy (Tried proxycfg.exe on web server with no success) I am going nuts.. something that should be so simple for me... The following will just not work and I give up.. so now I...
7
13984
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 need (as tree structure with plus/minus). This works great as long as I load the XML to display from a file with the Navigate2-method of the control. But my XML comes not from a file but is created dynamically during runtime.
1
1311
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 providing rss links? Is rss a good solution? If so, I think I have two options:
0
1124
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 title. For example in the following snippet of an rss feed I would like to display only the 2nd and 3rd items because they contain the word "Bush" in the title(sort of a regex type of search). Any ideas on how to do this? ~~snip~~~ - <item>
6
2368
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 file to track how many times our feed was accessed? Just to get a rough idea how manyh subscribers we have? Not sure if copying and pasting a javascript into the XML source would work.
0
932
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 appreciated.
1
4177
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 not XML. I have read some documentation and browsed websites, but I cannot figure it out.
1
1646
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 category will probably have several new listings every hour. What's generally the recommended update frequency for an RSS feed? Also, in each update, do you exclude content that was in previous feeds, or do you leave it up to the reader to sort out...
0
8411
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8613
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2740
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.