[Solved] Input type text declaration in code behind, c#


Input type = text is referenced as an HTMLControl:

using System.Web.UI.HtmlControls;

You can refer to the control using this syntax:

string str10 = ((HtmlInputText)e.Item.FindControl("txtYourTextBoxName")).Value;

solved Input type text declaration in code behind, c#