<script type="text/javascript">
function HasPageValidators() {
var hasValidators = false;
try {
if (Page_Validators.length > 0) {
hasValidators = true;
}
}
catch (error) {
}
return hasValidators;
}
function ValidationGroupEnable(validationGroupName, isEnable) {
if (HasPageValidators()) {
for (i = 0; i < Page_Validators.length; i++) {
if (Page_Validators[i].validationGroup == validationGroupName) {
ValidatorEnable(Page_Validators[i], isEnable);
}
}
}
}
</script&ft;
Call Function :
ValidationGroupEnable(validationgroupname, false);
Note : It Will Disable validation of Control for "validationgroupname"
there EnableClientScript true For Control
0 comments:
Post a Comment