添加asp:scriptmanager后,asp:customvalidator ClientValidationFunction停止工作

我有一个asp:CustomValidator和一个ClientValidationFunction,在.NET Framework 4.8下可以正常工作,但是一旦我在Site.Master上添加了一个简单的asp:scriptmanager,ClientValidationFunction就会停止工作。为什么ClientValidationFunction(如下所示)不触发?

function ExampleclientValidate(source,args)
    {
        if (document.getElementById("radiobuttonlist1").checked) {
            args.IsValid = false;
        } else {
            args.IsValid = true;
        }
    }
tomcatsjf 回答:添加asp:scriptmanager后,asp:customvalidator ClientValidationFunction停止工作

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2517232.html

大家都在问