Is there any possibility to initialize the value of the fields of standard HTML controls from C # code when the page loads?
such as
<select class="form-control" id="mySelect" name="mySelect"> <option selected>val1</option> <option>val2</option> </select>
runat="server"and go ... - Pavel Mayorovrunat="server"used in the standardhtmlelements as well as in the<asp:...>elements. If you remove therunat="server"element from the<asp:...>element, it will not stop working, since allaspelements are converted tohtmlmarkup. Try running the site onasp.netand see theисходный текст! - Egor Trutnev