"Techeek" <te*****@hotmail.comwrote in message
news:CB**********************************@microsof t.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