Re: Access a Internet URL from my web application
am 06.01.2008 16:49:24 von mark
"Techeek" wrote in message
news:CB8E6C9D-93D6-43C6-9164-A6C26DE00791@microsoft.com...
> How to access a Internet URL from a web application ? This web request
> will
> give XML output. How can I read that output??
string strXML = String.Empty;
using (WebClient objWebClient = new WebClient())
{
using (StreamReader objStreamReader = new
StreamReader(objWebClient.OpenRead("https://www.website.com/ xmlpage.aspx")))
{
strXML = objStreamReader.ReadToEnd();
objStreamReader.Close();
}
}
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
RE: Access a Internet URL from my web application
am 07.01.2008 02:15:00 von pbromberg
There is an even easier way:
XmlDocument doc = new XmlDocument();
doc.Load("http://mywebsite/myXmlPage.aspx");
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com
"Techeek" wrote:
> How to access a Internet URL from a web application ? This web request will
> give
> XML output. How can I read that output??
>
> Can anyone help me??
> --
> techeek
> http://oxyin.com/techeek/