ado.net apllication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mo/-/sin

    ado.net apllication

    hi i m mohsin......... ...
    i made a application in ado.net using c# at front end and sql server
    2005 at back end..........
    i apply 4 text boxes in the apllication and bind it to the service
    _maintenance table in sql derver........
    there are 4buttons also naming add, save,delete and
    update......... .....
    first three buttons are joing properly but now i want that if i change
    any value in the text boxes
    and click on update the value wil get save in sql server 2005.....
    can u plz provide me the code for doing so............
  • Ken Foskey

    #2
    Re: ado.net apllication

    On Sun, 24 Aug 2008 01:29:09 -0700, mo/-/sin wrote:
    and click on update the value wil get save in sql server 2005.....
    can u plz provide me the code for doing so............
    var BindingSourcesQ uery =
    from Component bindingSources in this.components .Components
    where bindingSources is BindingSource
    select bindingSources;

    foreach (BindingSource bindingSource in BindingSourcesQ uery)
    {
    bindingSource.E ndEdit();
    }


    tableAdapterMan ager.UpdateAll( myDataset);

    Comment

    Working...