473,503 Members | 9,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Going to a position in Web page after page refresh

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
Jul 21 '05 #1
4 1727
Here's a link to a page that shows how this can be done:

http://www.codeproject.com/aspnet/As...ollbarMove.asp

Hope it helps.

Have A Better One!

John M Deal, MCP
Necessity Software

WM Chung wrote:
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

Jul 21 '05 #2
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.

Jul 21 '05 #3
WM Chung wrote:
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.
--
Rinze van Huizen
C-Services Holland b.v.
Jul 21 '05 #4
jdn

"C-Services Holland b.v." <cs*@REMOVEcsh4u.nl> wrote in message
news:qN********************@zeelandnet.nl...
WM Chung wrote:
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.


Or better, create a JavaScript function that will accomplish this and wrap
it in a .NET function.

jdn
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3694
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
2
7285
by: kp. | last post by:
I am writing a very short HTML code such that i can refresh a third party webpage. A sample of it is as follow: <html> <head> <meta http-equiv="no-cache"> <META HTTP-EQUIV="refresh"...
1
3918
by: Roundy | last post by:
I have an asp page that shows dynamic data. I have it refreshing every 10 seconds. It is a very long page and when it refreshes it goes back to the top. I want the page to refresh and keep its...
2
4986
by: Brent | last post by:
I have a child page opened with a simple open() statement. I'd like to be able to refresh the parent page and keep the current scroll position. (If I do an "F5" refresh on IE, for instance, the...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.