473,503 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing Webpages

Hi

How can I download a webpage into a String? It's actually an online xml doc that I want to store in a DataSet, any ideas

Jennifer.
Nov 15 '05 #1
2 1019
webpages are returned as the results of a get, post or put request. So you
need to make a request to get the server to return the results of your call.

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemnetwebrequestclasstopic.asp

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
"Jennifer" <an*******@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
Hi,

How can I download a webpage into a String? It's actually an online xml doc that I want to store in a DataSet, any ideas?
Jennifer.

Nov 15 '05 #2
N.K
Use System.Net.WebClient to read the data

Code should look somewhat like ...

WebClient myWebClient = new WebClient();
Stream myStream = myWebClient.OpenRead(uriString);
DataSet ds = new DataSet();
ds.ReadXml(myStream);

Cheers
Nirmal
"Jennifer" <an*******@discussions.microsoft.com> wrote in message news:<37**********************************@microso ft.com>...
Hi,

How can I download a webpage into a String? It's actually an online xml doc that I want to store in a DataSet, any ideas?

Jennifer.

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4303
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
3
1662
by: Doug | last post by:
I have a split Access database that resides on a file server. The file server is a restricted drive that only people with the correct permissions can browse to this directory on the LAN. Several...
3
2682
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
2
1408
by: news.microsoft.com | last post by:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. I guess I get this because, my pages are hosted on WinXP IIS and the sql server is on Win2k3. ...
12
2764
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
2
1312
by: shanks | last post by:
I want to create a User Analysis software so in each of the webpages of that domain I want to put a very small Javascript which reports a hit on another server used just for that purpose. Is it...
0
1113
landy
by: landy | last post by:
Hi all! Here is my issue - I have a linux box set up as the server for the external webpage for my organization using apache/PHP to write the pages. I also use MySQL on this box for storing...
4
24291
by: Joey | last post by:
asp.net 2/C#/VS2005 I have a web app where I use a stream writer to create a CSV (text) file. I then use my code to save the file in the site's 'App_Data' folder, in a subfolder called 'Temp'....
5
2566
JDMM
by: JDMM | last post by:
How do i access an asp page from LAN? I have installed IIS 5.1 on one of my nekwork pc named ABC (say). Then i have included the folder (named "aspeg") which contains the asp webpages inside the...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7074
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7322
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1501
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.