繁体   English   中英

单击Microsoft Edge中的图像按钮时出错

[英]Error when clicking an image button in Microsoft Edge

当我使用最近更新的Microsoft Edge时,它具有以下问题。 当我使用其他浏览器(如IE,Chrome等)或Microsoft Edge的早期版本时,它没有它。

当我单击图像按钮时,它显示错误消息“输入字符串的格式不正确”,并且堆栈跟踪如下:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7488663
   System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) +115
   System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info) +192
   System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +189
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +14
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

请帮助并告知问题所在

似乎在您的click事件中,您尝试将页面中的某些值设置为Double变量,但是原始字符串不是有效的数字格式。 浏览器之间的差异可能是由浏览器使用不同的区域设置引起的(不同的区域可能使用.,作为小数点分隔符,或者如果数字足够大,则可能使用数千个分隔符)。

为了提供更多帮助,我们将需要您的代码中与按钮相关的更多详细信息(编辑您的问题以提供更多信息)。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM