Load a URL's execution result

S

stevag

Hello,

I am developing an application whose main goal is to read from a dynamic
..asp Internet URL. This URL automatically produces an RSS file, which I
further want to load into my application so as to manilupate the source
and render the results into an HTML page using ASP.NET and C#.
My problem is how (which classes and methods of ASP.NET in C# do I use)
do I read this .asp page and import the produced .rss file into my
XmlDocument in the Page_Load ( ) event.

=============================================================================================================================
This is what I have implemented so far, but it doesnt work unless the
feedURL is read directly from a local static file.


public class DisplayRSS : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Xml MyXMLWebControl;
string feedURL="test.rss"; /* But in the real case I want to read from
the dynamic .asp file that produces the .rss file */

private void Page_Load(object sender, System.EventArgs e)
{
XmlDocument mylist = new XmlDocument();
mylist.Load(feedURL);
MyXMLWebControl.Document = mylist;

/*Here I move on with setting the properties for the associated XLST for
parsing the rss file and rendering the results on my ASP.NET page */

}
}

=============================================================================================================================
Any help and ideas on this would be more than welcome.


stevag
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top