What you want to do is possible, but I'm not sure using a ASP.NET custom validator is the easiest way to go. If this custom validation is only on one or two pages, I'd just do the validation manually using a callback and some JQuery code.
Add a click event handler to your submit button (and any other button that should cause validation) that looks something like this:
$('.buttonsThatCauseValidation').live("click", function(event) {
if (event.button != 2) {
<Insert CallbackReference Here>;
return false;
}
return true;
});
Then in your client-side callback handler you check your validation result and either show an error message or proceed with the postback/submit operation.
function GetValidationCallbackResult(result) {
if(result == "true") {
<Insert PostbackReference Here>;
}
else {
}
}
Since you need callback and postback references, this code should be added using
Page.ClientScript.RegisterClientScriptBlock()
.