I would like to maintain the position of the scrollbar after posback of the button.

I would like to maintain the position of the scrollbar after posback of the button.

Good morning,

My problem is as follows:

First example, we look at just what makes the panel (ASPxPanel2):
if I click on the active button postback and the first panel maintains the position of the scrollbar's exactly in the position where I put before the postback.



Second example, we look at just what makes the second panel (demo1):
if I click on the active button postback and the second panel loses its scrollbar position of bringing it back up and all that is in the zero position. While the first maintains the position of its scrollbar (ie where the I positioned before the postback).

Now place the code I use to do what I said

I created a sample site that you can download from the following link to help you understand better:

http://www.net-project.it/mantieni_posizione_scrollbar.it.zip


I wish that the second panel with a stylized jquery I could maintain the position of its scrollbar after the page posts back. Can you recommend a way to solve it.

If the mode used by me no good, I ask you some advice to make sure you have a html block (such as div or panel) that I can stylize the scrollbar and that after a postback to maintain the position of the scrollbar without bring it back at the beginning using ajax or another, I do not know!
It 'a mess!

Can you help?


thanks