Hello
I have a Web form with username, password, and confirm password. There are no errors when I look at the page in my browser.
However, once I add an email field I get an Unable to find control id 'Email' referenced by the 'ControlToValidate' property of ''.
The code I have for that field is:
<div class="form-group">
<asp:Label runat="server" AssociatedControlID="strEmail" CssClass="col-md-2 control-label">Email</asp:Label>
<div class="col-md-10">
<asp:TextBox runat="server" ID="strEmail" CssClass="form-control" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="Email"
CssClass="text-danger" ErrorMessage="A valid email is required." />
</div>
...
Go to the complete details ...