0

How can I put disable the cause validation property of a control while the app is running cause that I have a radio button that put disable a control but this still cause validation

I put this but not worked.

text.CausesValidation = false;
0

1 Answer 1

1

If you are using an asp validator, you will want to disable the validator to skip validation for the control it is validating.

For example..if you have

<asp:RequiredFieldValidator ID="RFV_Text" runat="server" ... >*</asp:RequiredFieldValidator>

then in the server code, disable by

RFV_Text.enabled = false;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.