Hi,

I would like to modify my vb.net custom validator errormessage in a javascript function. This is what I have so far:

function txtStartDate_Validate(src, args) {
if (!args.Value == "") {
if (!isDate(args.Value)){
document.all("CustomValidator1").ErrorMessage = "test";
args.IsValid = false;
} else {
args.IsValid = true;
}
}
}