i am using validator for validating blank textbox. my problem is,i want to make the validation to false means the textbox can be blank,when i select Complete from dropdownlist.
How can i do this.
i am using validator for validating blank textbox. my problem is,i want to make the validation to false means the textbox can be blank,when i select Complete from dropdownlist.
How can i do this.
You can disable an ASP.NET validator using JavaScript. Tap into the onchange JavaScript event on your drop down list to invoke the disabling code, and that should do it.
Alternatively, if your combo box is posting back, you can disable or hide the validator in code behind by setting its Visible or Enabled property to false.