Connecting Tech Pros Worldwide Forums | Help | Site Map

Reset scroll position on AJAX postback

Mark
Guest
 
Posts: n/a
#1: Jun 27 '08

Hi.

I have a page which has an update panel covering all of it.

When I do a server postback via the update panel, the screen remains in
the same scroll position - which is ok most of the time.

BUT - if on one of these postbacks within the update panel, I need to
reset the scroll position of the screen to the top - how can I do that?
I've tried .focus() on a control at the top of the page, but this
doesn't work.

Thanks for any guidance,

Mark



*** Sent via Developersdex http://www.developersdex.com ***

Mark
Guest
 
Posts: n/a
#2: Jun 27 '08

re: Reset scroll position on AJAX postback


Hi - just wondering, if the only way to do this would be to not use
AJAX, and just use normal postbacks, which would results in the page
position being reset to 0?

Thanks, Mark


*** Sent via Developersdex http://www.developersdex.com ***
Closed Thread