Listbox - how do I maintain scroll position?
Posted on 2005-04-06
I have a listbox web control that has about 100 items.
The user scrolls down to find an item he wants to select, clicks an ADD button to "move" it to another listbox that contains the items "selected" from the big list.
Clicking the ADD button causes a PostBack.
Scenario: User scrolls to item 50, about half way down the big list. Selects an item and clicks ADD. The item is moved correctly to the selected list, but the big list is reset to item #1, which is the top of the list. I would like for the list to remain on position #50 after the postback.
I've searched alot through Google, but I can only seem to find help on maintaining PAGE position.