By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,640 Members | 2,355 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,640 IT Pros & Developers. It's quick & easy.

how to "save the user's place" on a vertically-scrolled page?

P: n/a
We have a long page of links (LinkButtons). Is it possible to save the
scroll position so that when a postback occurs after a link has been
clicked, we can return the page to its scroll state? Our users want to "save
their place". That is, if the user has scrolled down the page so that the
200th item is the first visible item in the browser page, we can set the
page so that the 200th item is once again the topmost visible item? After
the postback, the 1st item on the page typically becomes the topmost visible
item, and the users have to find where they were. BTW, we must invoke some
server-side code when any linkbutton is clicked, so making the click
eventhandler javascript function to avoid the postback is not an option.
Thanks!
Timo
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Google: "smart navigation"+"asp.net"

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/
"Timo" <ti**@anonymous.com> wrote in message
news:eM**************@TK2MSFTNGP09.phx.gbl...
We have a long page of links (LinkButtons). Is it possible to save the
scroll position so that when a postback occurs after a link has been
clicked, we can return the page to its scroll state? Our users want to "save their place". That is, if the user has scrolled down the page so that the 200th item is the first visible item in the browser page, we can set the page so that the 200th item is once again the topmost visible item? After the postback, the 1st item on the page typically becomes the topmost visible item, and the users have to find where they were. BTW, we must invoke some server-side code when any linkbutton is clicked, so making the click
eventhandler javascript function to avoid the postback is not an option. Thanks!
Timo

Nov 18 '05 #2

P: n/a
"Timo" <ti**@anonymous.com> wrote in
news:eM**************@TK2MSFTNGP09.phx.gbl:
We have a long page of links (LinkButtons). Is it possible to save the
scroll position so that when a postback occurs after a link has been
clicked, we can return the page to its scroll state? Our users want to


Yes, but only in IE. There is an option that you can set to tell IE to
"diff" the page and only redraw those parts if you send it the same page.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/
Nov 18 '05 #3

P: n/a
Many thanks!

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl...
Google: "smart navigation"+"asp.net"

Nov 18 '05 #4

P: n/a
Sure. I forgot to mention Smart Navigation requires IE 5 and later.
--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

"Timo" <ti**@anonymous.com> wrote in message
news:#d**************@tk2msftngp13.phx.gbl...
Many thanks!

"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in message news:Oh**************@TK2MSFTNGP12.phx.gbl...
Google: "smart navigation"+"asp.net"


Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.