Solved

Imagebutton Postback issue with IE11 and Updatepanel

Posted on 2013-12-13
5
3,854 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
  • 3
5 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
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 …
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now