简体   繁体   English

在IE 10和Windows 8中不支持Sys.WebForms.PageRequestManager.getInstance()

[英]Sys.WebForms.PageRequestManager.getInstance() not supporting in IE 10 and windows 8

I am facing some asp.net ajax problem in my application on IE 10 in windows 8. But it is running correctly in compatibility mode of IE 10. 我在Windows 8的IE 10上的应用程序中遇到了一些asp.net ajax问题。但它在IE 10的兼容模式下运行正常。

You can see my live demo for this here , it works fine in all browser instead of IE 10 (also works fine in IE9 on windows 7). 你可以在这里看到我的现场演示,它可以在所有浏览器而不是IE 10中正常工作(在Windows 7上的IE9中也能正常工作)。

Don't konw what is the reason? 不知道是什么原因?

on my page i am registering this event :- 在我的网页上,我正在注册此活动: -

var prm = Sys.WebForms.PageRequestManager.getInstance();

prm.add_endRequest(function() {
   page_Load();
});

$().ready(function() { page_Load(); });

function page_Load() {
    //my code for onload registration goes here(it all working fine)
}

Please help me. 请帮我。 Best Regards 最好的祝福

Instead of Sys.WebForms.PageRequestManager.getInstance(); 而不是Sys.WebForms.PageRequestManager.getInstance(); you can try jQuery .on() method. 你可以试试jQuery .on()方法。

Eg.: 例如。:

$('html').on('click', '.selector', function () {
    page_Load();
});

The server might not recognize Internet Explorer 10 as a web browser that supports JavaScripts. 服务器可能无法将Internet Explorer 10识别为支持JavaScripts的Web浏览器。 Running windows update fixed the problems for me. 运行Windows更新为我解决了问题。

If you cant update your server, you can try to add/modify your ie.browser in app_browser folder. 如果您无法更新服务器,可以尝试在app_browser文件夹中添加/修改ie.browser。

If you don't have access to the whole machine and/or just want to update a single project, use NuGet to install the App_BrowsersUpdate package. 如果您无权访问整个计算机和/或只想更新单个项目,请使用NuGet安装App_BrowsersUpdate包。 Your site structure in Solution Explorer will then look like the image at right. 然后,解决方案资源管理器中的站点结构将如右图所示。 Note that NuGet uses .NET 4, so for systems that have only .NET 2, you'll need to get the ZIP file and put the new browser files in App_Browsers manually. 请注意,NuGet使用.NET 4,因此对于只有.NET 2的系统,您需要手动获取ZIP文件并将新的浏览器文件放在App_Browsers中。

.NET 4 Browser Update NuGet Package - http://nuget.org/List/Packages/App_BrowsersUpdate install-package App_BrowsersUpdate .NET 2.0 Browser Update NuGet Package - http://nuget.org/List/Packages/App_BrowsersUpdate.net20 install-package App_BrowsersUpdate.net20 Note that NuGet is VS2010 specific so if you don't have nuget.exe and .NET 4, you can also copy the .NET 2 updated browser files into ~\\App_Browsers manually from this zip file. .NET 4浏览器更新NuGet包 - http://nuget.org/List/Packages/App_BrowsersUpdate install-package App_BrowsersUpdate .NET 2.0浏览器更新NuGet包 - http://nuget.org/List/Packages/App_BrowsersUpdate.net20安装 -包App_BrowsersUpdate.net20请注意,NuGet是VS2010特定的,所以如果你没有nuget.exe和.NET 4,你也可以从这个zip文件手动将.NET 2更新的浏览器文件复制到〜\\ App_Browsers中。 Updating the whole machine is the preferred way to fix this. 更新整个机器是解决此问题的首选方法。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Sys.WebForms.PageRequestManager.getInstance()在IE 10中不起作用 - Sys.WebForms.PageRequestManager.getInstance() not working in IE 10 Sys.WebForms.PageRequestManager.getInstance(); - Sys.WebForms.PageRequestManager.getInstance(); object 文字和 Sys.WebForms.PageRequestManager.getInstance().add_endRequest 问题 - object literal and Sys.WebForms.PageRequestManager.getInstance().add_endRequest issue 更新面板刷新后如何执行javascript(无法获取Sys.WebForms.PageRequestManager.getInstance()。add_endRequest();工作) - How to execute javascript once an update panel refreshes (Can't get Sys.WebForms.PageRequestManager.getInstance().add_endRequest(); to work) 在IE11中,Sys.WebForms.PageRequestManager是未定义的错误,在IE10及以下版本中正常工作 - Sys.WebForms.PageRequestManager is undefined error in IE11, working fine in IE10 and below 'Sys.WebForms.PageRequestManager' 是 null 或不是 object - 'Sys.WebForms.PageRequestManager' is null or not an object 使用Sys WebForms PageRequestManager进行异步交互 - Assyncronous interaction using Sys WebForms PageRequestManager IE.10 / 11上未定义的Sys.WebForms - Sys.WebForms undefined on IE 10/11 带有 IE11 的 ASP.NET WebForms 4.0 站点不会为 Windows Server 2003 上的 PageRequestManager 加载 ScriptResource - ASP.NET WebForms 4.0 Site with IE11 does not load ScriptResource for PageRequestManager on Windows Server 2003 Sys.WebForms.PageRequestManager pageLoaded 事件缓存 function? - Sys.WebForms.PageRequestManager pageLoaded event caching function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM