ado.net apllication

M

mo/-/sin

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............
 
K

Ken Foskey

and click on update the value wil get save in sql server 2005.....
can u plz provide me the code for doing so............

var BindingSourcesQuery =
from Component bindingSources in this.components.Components
where bindingSources is BindingSource
select bindingSources;

foreach (BindingSource bindingSource in BindingSourcesQuery)
{
bindingSource.EndEdit();
}


tableAdapterManager.UpdateAll(myDataset);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top