Relative Content

Tag Archive for c#asp.netvalidationwebforms

Need help on ASP.NET, validation

Whenever I make validation and assign the control to validation using ContorlToValidate.
But whenever the asp:label is connected to validation it still gives out this uncaught error.
“Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Control ‘labelID’ referenced by the ControlToValidate property of ‘validatorID’ cannot be validated.”
I have used CustomValidator, RegexValidator and requiredValidator.
the code goes like this.
`