how can I put disable validation on running app asp.net?

Go To StackoverFlow.com

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;
2012-04-04 21:14
by BlaShadow


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;
2012-04-04 21:25
by Nick Rolando
Ads