"Techeek" <(E-Mail Removed)> wrote in message
news:CB8E6C9D-93D6-43C6-9164-(E-Mail Removed)...
> 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