Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CustomValidator 1

Status
Not open for further replies.

LV

Programmer
Nov 1, 2000
1,184
US
I have a text box with a CustomValidator control that is looking at a client side javascript. The problem is, the validator is not validating the field, if it's empty. I cannot use a RequieredField validator, 'cause validation depends on another check box control. I was hoping that validation will always run and the script will validate the text box, depending on the state of that checkbox. Any ideas?
 
LV,
Have you thought about putting the validator on the check box instead? That way it will validate only when the box is checked and you can have it validate that textbox?

Ken
 
Yes I have, but it throws an error saying that validation is prohibited on this type of control (checkbox).
 
Would you mind posting the code I can perhaps try it myself, and see if I can find a way?

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top