Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 30, 2013 07:10 AM by satyajeetASP
Sep 10, 2007 11:07 PM|LINK
I have an update panel with content that can sometimes become pretty long and make the user have to scroll. If the user makes a change that causes a post within the update panel and then scrolls the page while the update is in progress it causes the page
to become jumpy.
It looks like the update panel is setting the scroll position back to what the original scroll position was when they first initiated the post. Normally this wouldn't be a problem, but with this page it can take a second or two for the update to finish
some times and it really starts to bug you after a while. Is there any way to turn this behavior of the update panel off or to stop it from happening?
Thanks in advance for the help,
Ascending Integration, Inc.
Sep 11, 2007 03:35 AM|LINK
Lety me know if this helpful to you
Sep 11, 2007 03:33 PM|LINK
Nope tried that already didn't work. Also tried removing my update progress control. Don't think this issue is more to do with the update panel specifically, because the page isn't actually posting back and refreshing. I'm thinking its a behavior that
they intended to have, because their script must be remembering the scroll position from when the async post was initiated and resetting it when the response comes back, I just need to know if there's a way to turn it off or interupt it somehow.
Sep 11, 2007 03:36 PM|LINK
Have a look here: http://support.microsoft.com/kb/913721
Sep 11, 2007 03:51 PM|LINK
Does the UpdatePanel have any knowledge about smart navigation? I don't see how that would have any effect on the update panel, because the full page isn't posting back and refreshing.
Sep 11, 2007 05:13 PM|LINK
Perhaps try this:
Sep 11, 2007 08:19 PM|LINK
Yea I saw that article in my searches too, but I think hes dealing with a different problem than me. His stems from having an overflow, scrolling div. My problem is just because the page is longer than the screen height. I put together a simple page to
test my scenerio and make sure it wasn't something else I was doing that was causing the behavior. It basically just has a button in the middle of a bunch of block returns to make the page long. The button sleeps the current thread for 5 seconds to simulate
a long running process. If you run the page below, scroll to the middle, click the button, scroll to the top and then wait 5 seconds, I think you'll see what I mean. I basically just want the scroll position to stay where it currently is after the updatepanel
is done processing. Thanks again for the help.
TEXT 2 Here
TEXT 3 Here
Sep 12, 2007 03:27 AM|LINK
Have you solved your problem
Sep 12, 2007 06:59 AM|LINK
Usually People loves to maintain the scroll postiion. But requirment is reverse, Here is the trick, create an script tag after the scriptmanager and put the following lines:
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm._scrollPosition = null;
Sep 12, 2007 03:43 PM|LINK
Awesome, that is exactly what i was looking for. I knew there had to be a way to tell it not to do that. Thanks so much!