There is an input element in a form whose runat attribute is server. I don't want to define id attibute to it. Following code gives error, because an string has not Value property. How can I do this?
<form id="form1" method="post" enctype="multipart/form-data" runat="server">
<div id="inpdiv">
<input type='text' name='inp1' />
</div>
</form>
In code behind wrong one:
Request.Form["inp1"].Value = "S";