Text box data binding

Discussion in 'ASP .Net Web Controls' started by FredBloggs012, Jun 14, 2004.

  1. If I code a textbox text property to be data bound eg
    Text='<%# DataBinder.Eval(DataSet11, "Tables[COMPANY].DefaultView.[0].Name") %>'
    will the data entered into the textbox update the bound dataset? If so, when in the page processing cycle will it be updated?
     
    FredBloggs012, Jun 14, 2004
    #1
    1. Advertising

  2. FredBloggs012

    Scott M. Guest

    It won't be updated at all. You will need to create an update button and an
    eventhandler for that button. You then take the value from the textbox and
    place that value into your dataset. From there you have your DataAdapter
    update the original data source and refresh the rest of the data by
    rebinding all the controls.


    "FredBloggs012" <> wrote in message
    news:...
    > If I code a textbox text property to be data bound eg
    > Text='<%# DataBinder.Eval(DataSet11,

    "Tables[COMPANY].DefaultView.[0].Name") %>'
    > will the data entered into the textbox update the bound dataset? If so,

    when in the page processing cycle will it be updated?
     
    Scott M., Jun 15, 2004
    #2
    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,548
    Jordan
    Feb 10, 2004
  2. =?Utf-8?B?Y2hyaXM=?=

    Binding data to a text box

    =?Utf-8?B?Y2hyaXM=?=, Jul 21, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,231
    Martin Marinov
    Jul 21, 2004
  3. Gnarlodious
    Replies:
    4
    Views:
    17,642
    elizas
    May 5, 2010
  4. Lloyd Sheen
    Replies:
    0
    Views:
    503
    Lloyd Sheen
    Apr 17, 2008
  5. David Wier
    Replies:
    0
    Views:
    560
    David Wier
    Apr 17, 2008
Loading...

Share This Page