I have created a CustomValidator control
public class MyValidator :CustomValidator, IScriptControl {}
and also created the equivalent client script. The server validation works fine, however how do I hook up my client script?
The rendered javascript looks like
var MyValidator1 = document.all ? document.all["MyValidator1"] : document.getElementById("MyValidator1");
MyValidator1.controltovalidate = "MyField";
MyValidator1.errormessage = "error";
MyValidator1.evaluationfunction = "MyValidatorEvaluateIsValid";
How do I override the generated javascript to set the value of evaluationfunction? E.g.
MyValidator1.evaluationfunction = "MyCustomJavascriptFunction";