tgoodmannz
Feb 25th, 2003, 06:53 PM
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:
<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: moAsset.assetName = txtAssetName.Text
Thanks!
Tim
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:
<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: moAsset.assetName = txtAssetName.Text
Thanks!
Tim