asp:RequiredFieldValidator

vnfpoz35

New Member
This is my first question in stackoverflow.com. I am working on a school project which I have to validate the input from the user. Everytime the page load, it give the server error message. Please see the codes, and the error message after.\[code\]<div><table><td><asp:RadioButton ID="RadioButton1" runat="server"></asp:RadioButton><asp:RequiredFieldValidator ID="validateCheck" runat="server" ControlToValidate="RadioButton1" ErrorMessage="Please Enter" Display="Dynamic"></asp:RequiredFieldValidator> </td></table></div>\[/code\]\[code\]Server Error in '/' Application.Control 'RadioButton1' referenced by the ControlToValidate property of 'validateCheck' cannot be validated.\[/code\]
 
Back
Top