Mike_Stevens
asked on
Use custom validator in webform and server side code
I have a web form that has several asp.net validation controls on it. I have one textbox that is using a function to validate the textbox contents against a SQL server database. I have the coding complete but I want to use a validator control to indicate if the textbox contents passed or failed so that it becomes part of the page validation along with the other validation controls on the form.
I tried setting the customvalidator.isvalid = false but it does not see to work.
How can I do this?
I tried setting the customvalidator.isvalid = false but it does not see to work.
How can I do this?
Add a custom validator control to the page and point it at the textbox you want to validate
ASKER
How will it know if the text in the textbox is valid?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.