Groups | Blog | Home
all groups > dotnet windows forms databinding > september 2004 >

dotnet windows forms databinding : Update data from textbox using Dataset and databinding



Ken
9/18/2004 11:15:05 AM
Hi,

I have a very simple webform which I would like to use to record peoples
input. In am able to create a SQLDataConnection & SQLDataAdapter to connecti
to the SQL database. I am then able to set the parameter in the
SelectCommand so I retrieve the data which I want. After I do that I call
DataBind in the Webform Page_Load and my data is moved to the Textbox
controls on my form.

I now need to catpure the information entered by the user and update the
database with the changes.

This seems like it should be a real simple thing to do but I can not figure
out the steps and can not find an example using just textboxes and a single
row in the dataset.

Please tell me what the cold in the event handler for the Save button should
be to retrieve the data from the textboxes and store them in the database.

Thanks in advance,
Greg Robinson
9/20/2004 7:58:07 AM
Databinding and updates only works with Window Forms (2 Way). It's only 1
way in web forms.

Not a web forms developer here, but I think you will need to handle your
updates manually.


[quoted text, click to view]

AddThis Social Bookmark Button