Hello, so for two-way (bi-directional) databinding in ASP, we do this...
<asp:textbox id="txtField" runat="server"
text='<%# Bind("SomeField") %>'>
</asp:textbox>
SomeField is located on the DataSource of the DetailsView that serves as the container for the textbox.
Alternatively I could do this from code-behind (using the textbox's OnDataBinding event):
protected void SomeField_OnDataBinding(object sender, EventArgs e)
{
((TextBox)sender).Text = Eval("SomeField").ToString();
}
However, EVAL is read-only...how can I specify Bind (two-way) from code-behind?