RSS and C#
-
Hi, I have an ASP page which when called returns an XML page. I also have an application I'm working on with C# which I need to connect to that page. How can this be done? I need to call the ASP page, read the data it returns and work with it. Thanks.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
-
Hi, I have an ASP page which when called returns an XML page. I also have an application I'm working on with C# which I need to connect to that page. How can this be done? I need to call the ASP page, read the data it returns and work with it. Thanks.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)
The easiest way is to open the URL in a WebRequest and create a dataset from the result
DataSet dsFeed = new DataSet(); WebRequest wq = WebRequest.Create(Url); WebResponse ws = wq.GetResponse(); dsFeed.ReadXml(ws.GetResponseStream()); ws.Close(); wq = null;` .: I love it when a plan comes together :. [http://www.zonderpunt.nl](http://www.zonderpunt.nl) `
-
Hi, I have an ASP page which when called returns an XML page. I also have an application I'm working on with C# which I need to connect to that page. How can this be done? I need to call the ASP page, read the data it returns and work with it. Thanks.
In life truth does not matter. What really matters is what others believe to be the truth. (The Up and Comer - Book)