Solved

Imagebutton Postback issue with IE11 and Updatepanel

Posted on 2013-12-13
5
4,018 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

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…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
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 +…

751 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