SCRIPT5022:Sys.WebForms.PageRequestManagerServerErrorException:输入字符串的不正确的格式 [英] SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format
问题描述
在IE10,当我点击登录按钮,我在控制台看到以下错误:
SCRIPT5022:Sys.WebForms.PageRequestManagerServerErrorException:输入字符串的不正确的格式。
的ScriptResource.axd,线路939字符13
On IE10, when I click the login button I see the following error in the console: SCRIPT5022: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format. ScriptResource.axd, line 939 character 13
我加了一些服务器端的日志记录,但永远不会发送的页面,所以它似乎是一个客户端的问题。
I added some server-side logging, but the page is never sent, so it seems a client side issue.
此行为不会发生在IE8,Firefox或Chrome,有它工作正常。
This behavior does not occur in IE8, Firefox OR chrome, there it works fine.
推荐答案
这是发生的,因为你的提交按钮是输入
与键入=像
。因此,坐标与表单提交。 Internet Explorer中的previous版本提交这些坐标整数,但Internet Explorer的10提交他们为小数。
This is occurring because your submit button is an input
with type="image"
. Therefore, coordinates are submitted with the form. Previous versions of Internet Explorer submit those coordinates as integers, but Internet Explorer 10 submits them as decimals.
有多种方法来解决它。请参见这个问题和<一个href=\"https://connect.microsoft.com/VisualStudio/feedback/details/755419/asp-net-4-0-and-ie10-click-on-imagebutton-in-updatepanel-produces-error-click-on-normal-button-does-not\">this bug报告了解一些解决方案。
There are a variety of ways to fix it. See this question and this bug report for some solutions.
这篇关于SCRIPT5022:Sys.WebForms.PageRequestManagerServerErrorException:输入字符串的不正确的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!