WEB SERVICE HELP

  • Thread starter Thread starter Maks Skinder
  • Start date Start date
M

Maks Skinder

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
 
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.
 
Back
Top