ScriptManager,updatepanel中按钮事件不兼容IE10以后版本
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>