Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml stream to dataset

Status
Not open for further replies.

SeaweedOPM

Technical User
Nov 19, 2004
53
0
0
US
I'm trying to get the xml returned from an http query request into a dataset.

It works with this:

Dim path As String = " Dim ds As New DataSet

ds.ReadXml(path)
GridView1.DataSource = ds
GridView1.DataBind()

But that only works sometimes; I think it is because of load time...? And when I try to run this path " it deffinatly doesn't work because it takes a few seconds to load. Is there a way to stall the load or even use a timer to make it work?

I really want to do this within a windows forms app and not a asp.net app. Thx
 
You could download the file locally, then open it.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Sure it has an extention, it's a .html file, it just also has post data. You'll probrably have to use a webrequest object to get it.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
So would i load it into the web browser component and just use the document method?

If you could just give me an example to run with i would lov ya forever man. thx

Zac
 
Code:
So would i load it into the web browser component and just use the document method?

Correct.

Code:
If you could just give me an example to run with i would lov ya forever man. thx

Luckily I'm married.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top