A
Alan Silver
Hello,
A couple fo questions about the easiest way to do some tasks. I'm sure
both of these can be done with custom controls, but can they be done
more easily with another validation control?
1) How would I go about building a validation control that checked that
a number was entered in a textbox only if a dropdown control was set to
a certain value? For example, say the dropdown allowed them to choose a
product, and product A requires a height entering, but none of the
others do. If they choose product A, they must enter a number, if they
choose any other product, they don't need to.
2) What if I want to require a textbox to be filled depending on the
value of another textbox? For example, if I have a textbox for customer
account number, then if they enter a number, they don't have to enter
their address as we will know it from their account. Non-customers would
not have an account number, so would leave the field blank and be
required to enter their address.
TIA
A couple fo questions about the easiest way to do some tasks. I'm sure
both of these can be done with custom controls, but can they be done
more easily with another validation control?
1) How would I go about building a validation control that checked that
a number was entered in a textbox only if a dropdown control was set to
a certain value? For example, say the dropdown allowed them to choose a
product, and product A requires a height entering, but none of the
others do. If they choose product A, they must enter a number, if they
choose any other product, they don't need to.
2) What if I want to require a textbox to be filled depending on the
value of another textbox? For example, if I have a textbox for customer
account number, then if they enter a number, they don't have to enter
their address as we will know it from their account. Non-customers would
not have an account number, so would leave the field blank and be
required to enter their address.
TIA