PC Review


Reply
Thread Tools Rate Thread

How to update to DB with a text box that is bind to dataset

 
 
xs
Guest
Posts: n/a
 
      16th Mar 2004
Hi,

I have a textbox that is bind to a dataset. I would like to update the data
using this textbox. After updating, the dataset will be passed to a web
service. But how do I save changes to the dataset in the first place (before
passing it to WS). Please advise. Thanks.

xs


 
Reply With Quote
 
 
 
 
Brian Parlier
Guest
Posts: n/a
 
      16th Mar 2004
If I understand your question the way you save changes to a DataSet is by
calling its AcceptChanges() method.

Dim ds As New DataSet()

' Do some data manipulation

ds.AcceptChanges()

This will cause all proposed values to be changed to current values.


Brian Parlier


"xs" <(E-Mail Removed)> wrote in message
news:#$(E-Mail Removed)...
> Hi,
>
> I have a textbox that is bind to a dataset. I would like to update the

data
> using this textbox. After updating, the dataset will be passed to a web
> service. But how do I save changes to the dataset in the first place

(before
> passing it to WS). Please advise. Thanks.
>
> xs
>
>



 
Reply With Quote
 
xs
Guest
Posts: n/a
 
      17th Mar 2004
Ok...But what if the data manipulation is at the GUI. That means after
changing the contents in the textbox, do I call ds.AcceptChanges() right
away?

"Brian Parlier" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> If I understand your question the way you save changes to a DataSet is by
> calling its AcceptChanges() method.
>
> Dim ds As New DataSet()
>
> ' Do some data manipulation
>
> ds.AcceptChanges()
>
> This will cause all proposed values to be changed to current values.
>
>
> Brian Parlier
>
>
> "xs" <(E-Mail Removed)> wrote in message
> news:#$(E-Mail Removed)...
> > Hi,
> >
> > I have a textbox that is bind to a dataset. I would like to update the

> data
> > using this textbox. After updating, the dataset will be passed to a web
> > service. But how do I save changes to the dataset in the first place

> (before
> > passing it to WS). Please advise. Thanks.
> >
> > xs
> >
> >

>
>



 
Reply With Quote
 
Berubea Andre
Guest
Posts: n/a
 
      25th Nov 2004

Did you found your answer, because I have the same problem.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
Cor Ligthert
Guest
Posts: n/a
 
      26th Nov 2004
Berubea,

Why than not make a new message with a description of your question. This
cannot be that difficult it is quiet basic.

Cor

"Berubea Andre"
..
>
> Did you found your answer, because I have the same problem.
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid Bind to DataSet, then Bind to DaTaview, GOT ERROR...PLS HELP A_PK Microsoft Dot NET Compact Framework 16 13th Apr 2005 05:27 AM
DataGrid Bind to DataSet, then Bind to DaTaview, GOT ERROR...PLS HELP A_PK Microsoft VB .NET 17 13th Apr 2005 05:27 AM
RE: Bind Text Box to DataSet Steve Bishop Microsoft C# .NET 0 28th Apr 2004 09:11 PM
Bind Text Boxes to DataSet Steve Bishop Microsoft Dot NET Framework 2 28th Apr 2004 09:11 PM
Bind Text Box to DataSet Steve Bishop Microsoft C# .NET 0 28th Apr 2004 02:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:24 PM.