I’m working on a form with a cs codebehind file. In my aspx page, I have this field:
<input runat="server" id="emailField" name="email" placeholder="jsmith@gmail.com" type="email" required="required"/>
but when I try to reference it in my codebehind, my codebehind doesn’t seem to recognize that it exists; I just get a syntax error. It’s happening on all my other form fields too. What am I doing wrong?
Try the following: