View Single Post
  #2 (permalink)  
Old May 29th, 2007, 01:07 AM
Asp.Net Asp.Net is offline
Authorized User
Points: 176, Level: 3
Points: 176, Level: 3 Points: 176, Level: 3 Points: 176, Level: 3
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Sep 2006
Location: , , .
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts

Hey Caster!
I don't know what you trying to achieve exactly.
But i Did something in my website that Shows an RSS feed from
So I did some research On this Topic.
This exapmple explains how to receive the rss feed from a remote website, and be able to display an images within it.
So once you see it you will understand what i'm talking about.
In general, before you going check out my website with the explanation, keep in mind tha this DataList Control-GridView control receives Information that comming from XML file. Yes in general RSS feed is a simple XML file, with e few attributes whithin it.
So there's a node stuff going on.

So now basicaly once youu have a node with the URL to the image

You will probably
Build some DataListCintrol to show this Info.
It might be something like this:
<asp:Datalist Id ="DataList1" runat ="server">

<!-He you can Put whatever you want--->
htm Tables Divs and so on..
Lets say wi have a table


     <img src ="<% # XPath(ImageNode)%>" />

    <a href = <%# XPath("comments/url") %> target ="_blank" ><img src = <%# XPath("ImageNode") %> border ="0" /></a>

<a href = "Your Url Go's here" target ="_blank" ><img src = <%# XPath("ImageNode") %> border ="0" /></a>


Well suppose this is a simple DataList Control
But in many cases it will work with a few main Controls.
To make this Work you will need the following stuff.

You will need the XmlDtaSourceControl
DataListControl, and maybe some XSLT file.
Refer to my example to understand the concept.
I tried to explain this as simple as I could.
So this is a first example that shows how to consume rss feed trom Local file/ And also explains how to put things together.
If you want, you can navigate to the second example, that shows how you can consume RSS feed with the images from Microsoft Website.
I suggest you to start from the first one, to get more clear understanding of how this builded from the inside. It's pretty simple to do, but It took me Month and a half to understand how to put things together, to achieve this result.

Finally You can check the exact same Example but using GridView Control.