Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

how to maintain scroll position with UpdatePanel

$
0
0

hello,

i have been trying to find a good way to maintain the scroll position on a page after an UpdatePanel async postback.  i tried a couple options:

Page.MaintainScrollPositionOnPostBack = True

and the web.config method:

<pages smartNavigation="true" maintainScrollPositionOnPostBack="true" ></pages>

but neither works. 

i have a GridView inside the UpdatePanel and after every Submit button click the screen flashes and jumps to the top of the page.  i then have to scroll back down to see the results of the query.

has anyone found a way to save the location of the page in codebehind, then reload the scroll position to where original submit query was initiated on the page?

i found a few javascript options, but i am looking for an asp.net/vb.net solution.

thanks!



 


Viewing all articles
Browse latest Browse all 5678

Trending Articles