Page.Isvalid is considering disabled Validation control also !

Apr 20 2010 9:56 AM
Hi all,

I have situation where I need to disable a validation control against a text box when a radio button is selected. I have achieved this using Javascript using following code snippet:

document.getElementById('<%= textTest.ClientID %>').disabled = true;
ValidatorEnable(document.getElementById('<%=RequiredTest.ClientID%>'),false);

It is working fine .. but at page load when control executes Page.Validate() then Page.Isvalid is giving me false because of the disabled controlled in Java Script.

Please help me in solving the issue, How can i make it to pass through at page load ?

Thanks in advance!

Regards,
Divya

Answers (1)