MaintainScrollBackPosition with Panel

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
 
B

bruce barker

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)
 
D

David C

Bruce,
So there is no solution that involves only server side script, e.g.
something in SelectedIndexChanged? Thanks.

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top