470,822 Members | 1,228 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,822 developers. It's quick & easy.

Using Data Binding to save data


I have a question about whether Data Binding can facilitate the process of saving data in a web application

I learned that you can data bind information from a number of different data sources to controls such as TextBox, ListBox, etc. I am clear on the concept of data flowing from data sources into web forms controls

What I am not clear about is how to make the data flow the other way. When I am ready to save the changes or add a new record, can I somehow re-bind the data source and controls, so the data flows FROM controls TO the data Source

Here is a flow of events
design time
- create data binding
run tim
- page onload, do DataBind() - the data flows from data source to Control
- user is editting, working with a record in a data form. A number of post backs may have occure
- user clicks the save button. Now, here is where I am confused. I have the data loaded in the controls, but no data exists in a dataset. Can I somehow use Data Binding to insert data from the controls to the data source in a SINGLE statement or do I need to generate one line per each field in the dataset -- vanilla, classic ASP method that is..?

Thanks for reading this long post. I appreciate your time and help very much


Nov 18 '05 #1
0 1540

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by amanatio | last post: by
19 posts views Thread by Simon Verona | last post: by
19 posts views Thread by Larry Lard | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.