且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法获取未定义或空引用的属性“PageRequestManager”

更新时间:2022-10-15 15:41:58

您将在此站点获得此解决方案。



http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMainta inFF5ScrollbarPosition.aspx [ ^ ]

Hi,
I am getting the below error in IE-10 browser and works fine in other browsers.

"Unable to get property ''PageRequestManager'' of undefined or null reference"

<script type="text/javascript" language="javascript">
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandle);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandle);
function beginRequestHandle(sender, Args) {
//some code here
}

function endRequestHandle(sender, Args) {
// some code here
}
</script>



Please provide the nature of the issue and solution .?

You will get the solution for this in this site.

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx[^]