Because Windows 8 is coming out in a few months, I thought I would see how my web applications will work under Windows 8 and IE10
A problem has come to surface, that when I place a listview in an updatepanel and I use imagebuttons as the buttons (to select, undo etc.) then a click on a imagebutton in an Item of the listview gives a runtime error.
For testing purpeses I created a very simple listview inside an updatepanel.
In the InsertItemTemplate I added a button and a Imagebutton, same with the Cancel commandname:
<asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="Clear" />
<asp:ImageButton imageurl="~/images/undo.png" ID="ImageButton1" runat="server" CommandName="Cancel" />
A click on the Button works like it should... A click on the ImageButton gives an error. In the eventlog on the server the following error
Exception message: Input string was not in a correct format.
at 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.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
When I use IE10 in compatibility mode, it works OK
Anyone any clue why this is and how to correct the error (and I don't want to switch to the Big buttons inside my listview items, cause they take to much space!)
Hope to hear from anyone...
P.S. same bug in .net 3.5 when viewing the site in IE10!