WEB SERVICE HELP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maks Skinder

    WEB SERVICE HELP

    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


  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: WEB SERVICE HELP

    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.Dat aBindings.Add(" Text", mobjDataSet, "Table.Fiel d");

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - nicholas.paldin o@exisconsultin g.com

    "Maks Skinder" <mskinder@mavia n.com> wrote in message
    news:%23X9j9B8R DHA.560@TK2MSFT NGP10.phx.gbl.. .[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...