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
Loading
ArshadPosted Apr 20, 2010, 7:23 PM
you can do one thing like, while disabling the control, you check if that control is disabled then <% contrilId.IsValid==true %> in the java script code. but that function should be at the end of