我的代码中包含以下属性
public string Firstname {get;set;}
当我想将其绑定到某个文本框时,我会执行以下操作:
<asp:TextBox runat="server" ID="txtFirstname" Text= <%# Bind("Firstname") %> />
then I want value put in this textbox to be set in my Firstname property (because I want to process it e.g. save this value) in my presenter. Why it doesn t work? EDIT Here is the aspx
<formview runat="server" ID="myFormView">
<p>Firstname <asp:TextBox ID="txtFirstName" runat="server" Text= <%# Eval("Firstname") %> /></p>
<p>Lastname <asp:TextBox ID="txtLastName" runat="server" /></p>
<input type="button" title="send" runat="server" id="btnSend" />
</formview>