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:
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:<asp:TextBox id="txtAssetName" runat="server" Width="248px" Text="<%# moAsset.assetName %>">Code:moAsset.assetName = txtAssetName.Text
Thanks!
Tim




Reply With Quote