If you are doing two-way data binding, you need to use the Bind () method for the data block.
<asp:TextBox ID="txtMyString" Text='<%# Bind("MyString") %>' runat="server" />
However, the last time I checked, this was only confirmed if the text field was inside a template control such as a Gridview, FormView or DetailsView.
source share