Question

I am creating one sharepoint webpart and it has one sharepoint people editor control. this is an required field. So i am using required field validator for validating the people editor control. But my problem is that when i am entering some junk data (eg: njhdfhfb), and then hit enter, it shows the validation message of "No exact match was found.". and also my validation message Select an employee or group. In my case i needs only my own validation message. But not the control message. How we can avoid this control validation message. Please help me for this. i had tried many ways.. but its not working. Thanks in advance..

Was it helpful?

Solution

In the above case the validator did not find any users and that is why it showed you the error message. You don't have to use a required field validator use AllowEmpty property and set its value to True.

You can disable to Validator using ValidatorEnabled property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top