Recently, I encountered a difficult problem in the project. In IE10, some image buttons were unresponsive, and other browsers (including IE9) were normal. I checked the background and found the following exception information:
Input string was not in a correct format.
Stack: System. number. stringToNumber (String str, NumberStyles options, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal) at System. number. parseInt32 (String s, NumberStyles style, NumberFormatInfo info) at System. web. UI. webControls. imageButton. loadPostData (String postDataKey, NameValueCollection postCollection) at System. web. UI. webControls. imageButton. system. web. UI. IPostBackDataHandler. loadPostData (String postDataKey, NameValueCollection postCollection) at System. web. UI. page. processPostData (NameValueCollection postData, Boolean fBeforeLoad) at System. web. UI. page. processRequestMain (Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Google: It was confirmed that IE10 has a Bug in. Net 4.0. The reason is that ToolKitScriptManager cannot correctly identify the ImageButton ID in UpdatePanel. There are three solutions:
1) Replace ImageButton with LinkButton + image
2) install the. Net 4.5 framework
3) Cancel asynchronous return of ImageButton:
ToolkitScriptManager tkt = (ToolkitScriptManager) Master. FindControl ("ToolkitScriptManager ");
Tkt. RegisterPostBackControl (ImageButton);Or set"PostbackTigger"