how to validate text box.
i have one button and one checkbox
when i check the checkbox then it disable some textbox otherwise all enable
below is java script function
its working fine but in server side
Page.IsValid condition false so my text value how to save please tell me its urgent.
function disable() {
if (document.getElementById('<%=chkAEntry.ClientID %>').checked) {
ValidatorEnable(document.getElementById('<%=rfvFixtureDate.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvVessel.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvDPort.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvDwt.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvLPort.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvLayCan.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvCharterer.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvWSRate.ClientID %>'), false);
ValidatorEnable(document.getElementById('<%=rfvddlFixtureStatusID.ClientID %>'), false);
}
else {
ValidatorEnable(document.getElementById('<%=rfvFixtureDate.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvVessel.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvDPort.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvDwt.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvLPort.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvLayCan.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvCharterer.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvWSRate.ClientID %>'), true);
ValidatorEnable(document.getElementById('<%=rfvddlFixtureStatusID.ClientID %>'), true);
}
}