Results 1 to 2 of 2

Thread: Is Databinding bi-directional??

  1. #1

    Thread Starter
    Lively Member tgoodmannz's Avatar
    Join Date
    Sep 2000
    Location
    Mid On at the Pavillion End
    Posts
    102

    Is Databinding bi-directional??

    Hi,

    I'm trying to Databind a Textbox to a property of a bean .. it works OK for setting the value of the textbox, but when the Textbox value changes, should that also be reflected in the bean property? My colleague thinks so, but it doesn't seem to work...

    For example, I have defined:

    Code:
    <asp:TextBox id="txtAssetName" runat="server" Width="248px" Text="<%# moAsset.assetName %>">
    And when I call txtAssetName.Databind(), the text box displays the value .. However is it possible to update moAsset.assetName with the text box value without calling explicitly:
    Code:
    moAsset.assetName = txtAssetName.Text

    Thanks!

    Tim

  2. #2

    Thread Starter
    Lively Member tgoodmannz's Avatar
    Join Date
    Sep 2000
    Location
    Mid On at the Pavillion End
    Posts
    102
    Looks like I win the bet with my colleague .. this is not available ..

    Sorry Drew ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width