Select the input value of a select element from the .aspx file, through the .cs file [closed] (stackoverflow.com)stack
24 points by Ikram Wani in stackoverflow.com · 3h ago · stack comments
<%-- <select id="gender1" runat="server"> The base class includes the field 'gender1', but its type (System.Web.UI.HtmlControls.HtmlInputText) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlSelect). If I rename it to gender2 works fine --%> <select id…