Thursday, 6 February 2014

Annoying issue with ASP.NET ImageButton inside UpdatePanel

I personally do not like to use UpdatePanel at all however in some cases I need to maintain the code written by others. One annoying problem I encountered today is that in IE10 or IE 11 the ImageButton placed inside an UpdatePanel when clicked just does nothing and the following error is thrown in IE's error console:

Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.

I reckon this is a bug within the framework and an easy fix is just to change the code to use LinkButton instead and put the image inside.

No comments:

Post a Comment