PC Review


Reply
Thread Tools Rate Thread

Access a Internet URL from my web application

 
 
Techeek
Guest
Posts: n/a
 
      6th Jan 2008
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/
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      6th Jan 2008
"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

 
Reply With Quote
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      7th Jan 2008
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/

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ms-access application with datas on internet Alain Bourgeois Microsoft Access 0 1st Feb 2007 09:31 PM
Application access to internet Jim Windows XP Basics 2 15th Dec 2003 01:42 PM
Linking Access application to Access database via Internet Travis Peters Microsoft Access External Data 1 19th Nov 2003 04:35 AM
Re: Unknown Application Internet Access Request. MJD Anti-Virus 0 10th Sep 2003 09:14 AM
Access application to the internet John Huston Microsoft Access 0 4th Aug 2003 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.