IE10& ASP.Net Handler错误

时间:2013-01-10 08:49:09

标签: asp.net iis-7 httphandler httpmodule

我在IE10上测试了我的网站。查看源IE 10不包含一些ScriptResource.axd文件。但我复制网站网址并粘贴Chrome工作正常。

此代码不包括IE10。(右键单击 - >查看源代码)

var theForm = document.forms['form1'];
if (!theForm) {
    theForm = document.form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}

1 个答案:

答案 0 :(得分:1)

出现此类问题时最常见的情况是ASP.NET无法将浏览器检测为支持JavaScript的情况。对于IE10,您应该在开发计算机和服务器上安装KB。请检查您是否拥有它们,这里有详细描述(还有一些其他修复可能性):