PC Review


Reply
Thread Tools Rate Thread

Bound DataSet not showing changes on Web Form

 
 
JS
Guest
Posts: n/a
 
      29th Jul 2003
I have a WebForm with databound WebControls (textboxes). I added a typed
DataSet being filled via a class object that provides the data access. In
my page load event I fill the form's dataset:

FormDataSet.Merge(oDBClass.GetDataSet() )

then

DataBind()

Works great - fills the data into the form for the client as expected. I
then type data into the web form and click submit.
In the Submit button's code I run GetXML on the bound dataset and I don't
see the change???

I am assuming that this bound dataset would contain the result of the user
operations on the form after a submit. Am I wrong and perhaps I need to
loop through the webcontrols and manually stuff the data into the Dataset
prior to sending it to the database?

Any ideas appreciated.

Thanks.
Jack


 
Reply With Quote
 
 
 
 
Prasad
Guest
Posts: n/a
 
      29th Jul 2003
Hi

For WebApplications the DataBinding is readonly. The developer is
responsible to reflect the Changes.

HTH
Prasad

"JS" <j#s.com> wrote in message
news:(E-Mail Removed)...
> I have a WebForm with databound WebControls (textboxes). I added a typed
> DataSet being filled via a class object that provides the data access. In
> my page load event I fill the form's dataset:
>
> FormDataSet.Merge(oDBClass.GetDataSet() )
>
> then
>
> DataBind()
>
> Works great - fills the data into the form for the client as expected. I
> then type data into the web form and click submit.
> In the Submit button's code I run GetXML on the bound dataset and I don't
> see the change???
>
> I am assuming that this bound dataset would contain the result of the user
> operations on the form after a submit. Am I wrong and perhaps I need to
> loop through the webcontrols and manually stuff the data into the Dataset
> prior to sending it to the database?
>
> Any ideas appreciated.
>
> Thanks.
> Jack
>
>



 
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
Forcing data bound controls to be populated before showing form David Scemama Microsoft ADO .NET 1 12th Aug 2005 10:43 AM
HOW TO: Create a single DataSet bound object used by 50 DropDownList box controls in the same web form. CSHARP Bill Microsoft C# .NET 3 2nd Mar 2004 02:39 PM
HOW TO: Create a single DataSet bound object used by 50 DropDownList box controls in the same web form. CSHARP Bill Microsoft ADO .NET 4 2nd Mar 2004 02:35 PM
HOW TO: Create a single DataSet bound object used by 50 DropDownList box controls in the same web form. CSHARP Bill Microsoft ASP .NET 3 1st Mar 2004 05:31 PM
How to update DataSet without moving in data-bound form??? al Microsoft ADO .NET 1 8th Dec 2003 09:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 AM.