IE10下调试会报javascript错误:Sys.WebForms.PageRequestManagerServerErrorException
ScriptManager控件之后添加
<script type="text/javascript"> Sys.WebForms.PageRequestManager.getInstance()._origOnFormActiveElement = Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive; Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive = function(element, offsetX, offsetY) { if (element.tagName.toUpperCase() === ‘INPUT‘ && element.type === ‘image‘) { offsetX = Math.floor(offsetX); offsetY = Math.floor(offsetY); } this._origOnFormActiveElement(element, offsetX, offsetY); }; </script>
时间: 2024-10-14 12:44:59