ASP Moving

iebidan

Contributor
Joined
Feb 6, 2003
Messages
484
Maybe someone had this problem before and solved it, so now I need your help to solve it

I've an ASPX page with a datagrid, when the page loads, the datagrid can contain up to 25 items, when this happens, the page is large and you need to scroll down to see the whole datagrid.
When you select an item in the datagrid at the bottom of the page it makes a Postback, but when it reloads puts the user in the top of the page, how can avoid this?? if I select an item, make the postback and keep me in the position where the selected item is???

Thanks in advance
 
Yeah... really bright.
What if I use Mozilla or other browser that doesn't support it ?

The best used method... is to set a DataView that is sorted (however you want) and to set it to the DataSource of your grid.

I use it alot and it always display my element in the proper order (even If I add some).

Personnally... I try to keep off "one-kind-of-browser-function". As they limit the choice of my users.
 
Arch, you cannot re-sort if the user selects an item in the grid far down the page. SmartNav is the choice in this case.
 
Back
Top