Solved

Imagebutton Postback issue with IE11 and Updatepanel

Posted on 2013-12-13
5
4,066 Views
Last Modified: 2013-12-20
Hello experts,
I am developing a web application in .Net 4.0, where I need to use Imagebutton within UpdatePanel.

Everything is working fine i.e. I am able to do asynchronouse postback in all browsers except Latest version of IE IE11.

I registered Imagebutton Asyncpostbackevent in scriptmanager but still not able to do asyn. postback.

Everytime I am getting error as in screen-shot attached.
Javascript Error
Javascript Error in Debugger Window
0
Comment
Question by:dotsandcoms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 43

Expert Comment

by:Rob
ID: 39717928
I can only see half the error message from your screenshot.  Can you post the full javascript error please
0
 

Author Comment

by:dotsandcoms
ID: 39718316
The error that is coming in the message box is

Line: 938
Error: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
0
 
LVL 27

Expert Comment

by:Chinmay Patel
ID: 39720795
When you are using AJAX if there is an error that is generated due to server side code it will translate to such a message on client side. You need to look in to your Server side code where you are passing in string for some processing.
0
 

Accepted Solution

by:
dotsandcoms earned 0 total points
ID: 39720969
Hi,
It is a bug in IE11 new installation, which can be rectified using the below javascript :

<script type="text/javascript">
             Sys.WebForms.PageRequestManager.getInstance()._origOnFormActiveElement = Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive;
             Sys.WebForms.PageRequestManager.getInstance()._onFormElementActive = function (element, offsetX, offsetY) {
                 if (element.tagName.toUpperCase() === 'INPUT' && element.type === 'image') {
                     offsetX = Math.floor(offsetX);
                     offsetY = Math.floor(offsetY);
                 }
                 this._origOnFormActiveElement(element, offsetX, offsetY);
             };
           </script>

Open in new window

0
 

Author Closing Comment

by:dotsandcoms
ID: 39731407
Find answer at own.
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question