I have this code
<asp:CustomValidator id="valreqEditComment"
ControlToValidate="reEditComment"
ClientValidationFunction="TestWordCount"
Display="Static"
ErrorMessage="A value must be entered for the Comment field!"
runat="server"/>
but it never gets here:
<asp:CustomValidator id="valreqEditComment"
ControlToValidate="reEditComment"
ClientValidationFunction="TestWordCount"
Display="Static"
ErrorMessage="A value must be entered for the Comment field!"
runat="server"/>
but it never gets here:
function TestWordCount(sender, args)
{
alert('hello world');
if (sender.get_text().search("file://w%7b5/,}") == -1)
{
args.IsValid = false;
}
else
{
args.IsValid = true;
}