Going to a position in Web page after page refresh

G

Guest

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
 
G

Guest

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

C-Services Holland b.v.

WM said:
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

Using HTML anchors could do the trick. Just tell it in the URL to goto a
specific anchor.
 
J

jdn

C-Services Holland b.v. said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top