0
votes

I am using custom validation control to check if any one of the 2 phone numbers (HomePhone Textbox and BusinessPhone Textbox) are filled or not on my form.

I am able to do it by using JavaScript.

Now I want to check the format of the phone number entered by using regular expression validation control. But the problem I am facing is in "ControlToValidate" property.

As any one of the textboxes can be filled by the users, which control I should validate?

If I am not clear let me know.

Thanks.

1

1 Answers

0
votes

You need to use a separate regular expression validation control for each text field, unfortunately. You set the ControlToValidate to each text box on each validation control