Hi all,
I have a long Web page which need vertical scrolling. If I work on the GUI
at bottom of Web page, e.g. clicking a button or selecting an item in List
box, the page refreshes. After page refreshing, the page is automatically
located at the top. This is inconvenient as I need to scroll back to the
location at which I work. Can it be located at the original location, instead
of the top, after the page refreshing ?
Thanks in advance.
W.M. Chung
John M Deal - 19 Nov 2004 06:47 GMT
Here's a link to a page that shows how this can be done:
http://www.codeproject.com/aspnet/AspNetScrollbarMove.asp
Hope it helps.
Have A Better One!
John M Deal, MCP
Necessity Software
> Hi all,
>
[quoted text clipped - 7 lines]
> Thanks in advance.
> W.M. Chung
Saurabh Nandu - 19 Nov 2004 07:29 GMT
Try enabling SmartNavigation=true on the ASP.NET web page. This will auto
generate a script that will return the user back to the position he was
before the PostBack. Although this script works generally on IE only.
C-Services Holland b.v. - 19 Nov 2004 10:27 GMT
> Hi all,
>
[quoted text clipped - 7 lines]
> Thanks in advance.
> W.M. Chung
Using HTML anchors could do the trick. Just tell it in the URL to goto a
specific anchor.

Signature
Rinze van Huizen
C-Services Holland b.v.
jdn - 20 Nov 2004 04:21 GMT
>> Hi all,
>>
[quoted text clipped - 10 lines]
> Using HTML anchors could do the trick. Just tell it in the URL to goto a
> specific anchor.
Or better, create a JavaScript function that will accomplish this and wrap
it in a .NET function.
jdn