Scroll position in panel control

J

Jason James

Hi all,

I've checked the posts but this question doesn't
seem to have been asked in a while and I don't
seem to be able to find an answer for it anywhere
else.

I have a panel control on my page that contains
a datalist. The datalist renders small thumbnails
(200px X 200px) for up to 200 images. When
I click the image a itemSeleted event is
fired, and a postback to the server renders
a large copy of the image in an image control
on the form. Unfortunately, due to the postback
the panel control return to the top of its scroll
position where I might not be able to see the
thumbnail that I just selected.

Does anyone know if I can maintain the scroll
position of the panel control, just as I can
with the form as a whole using the Page
directive MaintainScrollPositionOnPostback?

Can I get the scroll value of the panel control,
or should I really look at javascript to load the
image from the thumbnail and avoid the
postback altogether?

Any thoughs would be most welcome.

Regards,

Jason.
 
S

Steve C. Orr [MVP, MCSD]

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,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top