Using Data Binding to save data

Discussion in 'ASP .Net' started by =?Utf-8?B?cG9wc292eUBydXNtZXguY29t?=, Jan 30, 2004.

  1. Hi

    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

    Zheny
    http://www.rusmex.co
     
    =?Utf-8?B?cG9wc292eUBydXNtZXguY29t?=, Jan 30, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jordan
    Replies:
    2
    Views:
    2,577
    Jordan
    Feb 10, 2004
  2. user
    Replies:
    1
    Views:
    798
    Bruce Barker
    Apr 4, 2005
  3. teo
    Replies:
    1
    Views:
    492
  4. BusyBoy
    Replies:
    2
    Views:
    631
    =?Utf-8?B?TGVvbiBNYXluZQ==?=
    Oct 31, 2006
  5. JcFx
    Replies:
    0
    Views:
    319
Loading...

Share This Page