I have am using an asp:FormView control with elements such as:
<asp:TextBox id="FirstName"
runat="server" MaxLength="20"
Columns="15" Text='<%# Bind("FirstName") %>' />
I cannot access the value of this field by its id -> "FirstName" in the code behind file.
Any ideas on how I can access that value in the code behind file?
Sumit Kesarwani
05-Sep-2014var firstNameTextbox = FormViewId.FindControl("FirstName") as TextBox;
string myValue = firstNameTextbox.Text;