Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Imagebutton Postback issue with IE11 and Updatepanel

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
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.
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 +…

715 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