Reset scroll position on AJAX postback

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

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
 
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
 
Back
Top