Iam using required field validator for controls.In one scenario iam not showing one textbox so when I click on button validation is firing so I can I do this to not fire valiadtion when the textbox is in hide?
If TextBox is hidden, you also need to Disable the Validator by setting
RequiredFieldValidator1.Enabled = false;
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.