I have the custom validator code
<asp:CustomValidator ID="ddl1" ClientValidationFunction="IscontrolVisible" ControlToValidate="ddl1"
runat="server" ValidationGroup="ValSummary" Display="Dynamic" ErrorMessage="drop down invisible">*</asp:CustomValidator>
below is the function
function IscontrolVisible(source, arguments) {
//if ((document.getElementById(source).visibility == "visible")) {
debugger;
if (arguments.value == "" || arguments.value == "Select...") {
arguments.IsValid = false;
}
else {
arguments.IsValid = true;
}
}
how can i get the error message based on the visibility of the control?