boatdrinks
IS-IT--Management
I have a drop-down box and a textbox. I would like to set the validator of the textbox to require a value only if a specific value is selected in the drop-down. Is there a way to do this?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
if (ddlMyDropDown.SelectedValue == "whatever")
{
vldMyRequiredFieldValidator.ControlToValidate = txtMyTextBox;
}