Using HTML markup
<form id="form" runat="server"> <input id="donkey" type="text" placeholder="monkey" runat="server" /> </form>
I was hoping to get the entered value in the code behind
String s = Request.Form["donkey"];
but it only produces a null value. When I examine the data structure, I get something like "$ ctl00 $ main $ donkey", so I know it there. After a while, I just switched to
<form id="form" runat="server"> <asp:TextBox id="donkey" type="text" runat="server"></asp:TextBox> </form>
but I'm still wondering how to refer to the object from the server side, if for some reason I donโt switch to the ASP component.
source share