Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Scroll bar moves on asynchronous postback in IE 11

$
0
0

Hi all,

I have an .aspx page with a number of user controls, each of which has a GridView control within an UpdatePanel.  These UpdatePanels initiate asynchronous postbacks to update the GridViews.

With IE9, and with the MaintainScrollPositionOnPostbackproperty set to true, the main .aspx page would not scroll when the asynchronous postbacks occurred.  Now with IE11 the page scrolls, usually to the top, but not always.  I get similar behavior with Chrome.

I am also setting the focus on a control within the grids.  I think this is the immediate cause of the problem, as the problem goes away if the code for the focus is removed.  But this worked in IE9.

I have tried some of the JavaScript solutions found online but to no effect.  We are using Visual Studio 2013 with C# and Windows 7.

Thanks,

Eric Lindberg



Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>