register.aspx
添加一些字段后在 Visual Studio 中运行时出现此错误。字段是id
、meter
和address
。
这是代码:
<tr>
<td align="right">
<asp:Label ID="Label1" runat="server" AssociatedControlID="ID of your Meter">ID of your Meter:</asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ID of your Meter" ErrorMessage="ID is required." ToolTip="ID is required." ValidationGroup="RegisterUser">*</asp:RequiredFieldValidator>
</td>
</tr>