By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,671 Members | 1,403 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,671 IT Pros & Developers. It's quick & easy.

WEB SERVICE HELP

P: n/a
Hello I'm a newbie in a C# programming.

Can anyone help me to understand how can I retrieve a dataset from an web
service (with sql adapter) and fill some textbox on my windows client?

Please do not show me a datagrid because I found a lot of examples with it
but it is not what I'm looking for.

Regards

Maks Skinder
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Maks,

For your web service, you just have to define a method where the return
value is a DataSet. Once you do that, you can easily create the proxy in
VS.NET for the webservice (by right-clicking the "references" folder and
selecting "add web reference").

Once you have the data set from the web service, you can easily bind a
textbox to a value on the table by using the Add method on the DataBindings
property, like so:

// Bind to the table/field combination in the data set.
mobjTextBox.DataBindings.Add("Text", mobjDataSet, "Table.Field");

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Maks Skinder" <ms******@mavian.com> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
Hello I'm a newbie in a C# programming.

Can anyone help me to understand how can I retrieve a dataset from an web
service (with sql adapter) and fill some textbox on my windows client?

Please do not show me a datagrid because I found a lot of examples with it
but it is not what I'm looking for.

Regards

Maks Skinder

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.