Prevent Jcarousel from resetting to beginning position on page postback?

Posted by lbholland on Stack Overflow See other posts from Stack Overflow or by lbholland
Published on 2010-05-29T18:57:07Z Indexed on 2010/05/29 19:02 UTC
Read the original article Hit count: 287

I have a nice looking jarousel running from an asp:listview element, with asp:imagebuttons for the images. When clicked, the images in the carousel send the image id to querystring, and the new page is loaded with a larger version of the image and some asp:labels are filled in to describe the image. It looks and works great, except once the page reloads the jcarousel resets to original position, which is confusing to the user.

What's the best way to prevent this? I tried using an UpdatePanel but couldn't figure out how to pass the querystring variable with the partial page update. I could pass the variable in a hidden field, but this wouldn't be very SEO friendly.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about updatepanel