Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Imagebutton Postback issue with IE11 and Updatepanel

Posted on 2013-12-13
5
Medium Priority
?
4,179 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 …
This article discusses how to implement server side field validation and display customized error messages to the client.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

963 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