473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 C# DataSet -> WebServices

I would like to consume a web service. There is one method in this
webservice that returns the results in a DataSet type.

I know that I can return the data in a GridView control. However, if I want
to deal with the data behind the scenes (without displaying to the user),
how do I do it?

For example, this method might return the City and temperature in the
DataSet, how do I retrieve this info without outputting to a GridView
control?

Thanks.
Jan 9 '06 #1
2 1882
If the webservice method returns a dataset, you can do anything you want with
this dataset (store it in Session or Cache, for example).
Binding it to a GridView or some other control is a separate operation.

Or you could do both- store it in Session AND bind it to the gridview.

DataSet myDs = myWebServiceProxy.MethodThatGetsDataset();
Session["myDs"]=myDs

Does that help?

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"David R." wrote:
I would like to consume a web service. There is one method in this
webservice that returns the results in a DataSet type.

I know that I can return the data in a GridView control. However, if I want
to deal with the data behind the scenes (without displaying to the user),
how do I do it?

For example, this method might return the City and temperature in the
DataSet, how do I retrieve this info without outputting to a GridView
control?

Thanks.

Jan 9 '06 #2
Bob
Once you get the DataSet myDs, how do you step through its tables and
fields? Do you use DataTable? If you have some code sample, that would be
helpful.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:B7**********************************@microsof t.com...
If the webservice method returns a dataset, you can do anything you want with this dataset (store it in Session or Cache, for example).
Binding it to a GridView or some other control is a separate operation.

Or you could do both- store it in Session AND bind it to the gridview.

DataSet myDs = myWebServiceProxy.MethodThatGetsDataset();
Session["myDs"]=myDs

Does that help?

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"David R." wrote:
I would like to consume a web service. There is one method in this
webservice that returns the results in a DataSet type.

I know that I can return the data in a GridView control. However, if I want to deal with the data behind the scenes (without displaying to the user), how do I do it?

For example, this method might return the City and temperature in the
DataSet, how do I retrieve this info without outputting to a GridView
control?

Thanks.

Jan 11 '06 #3

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

Similar topics

3
4566
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
3
6588
by: Jeronimo Bertran | last post by:
Hi, I have an xml file that encapsulates a dataset definition within a set of tags (<dataset>)... here is an example <?xml version="1.0" encoding="utf-16"?> <dataset> <MyTable>...
5
5377
by: Mike | last post by:
I need to expand the DataSet class by inheriting from it and adding functions that work on the data in the tables. However, since I can't upcast how can I get my base DataSet object assigned an...
3
13568
by: JJ | last post by:
Hi, I need to pass a dataset to another win form along with a SqldataAdapter. I don't want to recreate the SqlDataAdapter again either. So to pass to another Win form in my windows form app, do...
5
3682
by: Jason | last post by:
I am having problems understanding how to access a datasource only once, fill a single dataset, and then reference that dataset multiple times through different user controls(ascx) found on the...
2
3373
by: John Holmes | last post by:
I have a web interface where the user types in ID's one at a time. After an ID is typed in, a button is clicked and the button click event has code that does a query and returns a data reader and...
15
2227
by: JIM.H. | last post by:
Hello, Can I send a dataset as a parameter into stored procedure and import data to a table in the stored procedure? Thanks, Jim.
16
2454
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
4
1425
by: Robert Bravery | last post by:
Hi All, I'm New to VS.net. Trying to figure out this new dataset thingy. Ok so I add a dataadapter with all the correct properties for a table. Then generate the dataset. Now open the dataset and...
1
2508
by: matt | last post by:
hello, i have a web app that allows users to query our oracle db and produce a dataset of report data. they then have the option to serialize this data and store it in the database. later, then...
0
7323
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
7379
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
7038
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...
1
5049
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
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
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 ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.