MaintainScrollBackPosition with Panel

  • Thread starter Thread starter David C
  • Start date Start date
D

David C

I have an asp.net 3.5fw web page with a scrolling Panel that has a GridView
inside it. The page has MaintainScrollPositionOnPostback="true" but the
GridView and Panel do not retain their selected position. Is there a way to
do this? Thanks.

David
 
MaintainScrollPositionOnPostback save the body's location in hidden
fields. you will need to add javascript and server code to do this also
do this for a panel. the ajax client library has routines to get the x &
y (or google) of the panel (div) and copy to a hidden fields via a
onsubmit routine, and you can register a startup script to set it back.


-- bruce (sqlwork.com)
 
Bruce,
So there is no solution that involves only server side script, e.g.
something in SelectedIndexChanged? Thanks.

David
 
Back
Top