473,503 Members | 1,633 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Scrolling to bottom of page

I need the browser to scroll my asp.net page to the bottom when the user
clicks on a server-side link or button at the top of the page. I added an
anchor tag <a name=#bottom> to the html and tried to attach javascript to
the click event of the button that creates <a href=#bottom>, but it won't
work. Does anyone know the best way to do this? I am using ASP.NET 1.1.
Thanks,
Apr 20 '06 #1
4 8188
For IE only...

http://msdn.microsoft.com/workshop/a...llintoview.asp

"magreenb" <ma******@community.nospam> wrote in message
news:uN**************@TK2MSFTNGP04.phx.gbl...
I need the browser to scroll my asp.net page to the bottom when the user
clicks on a server-side link or button at the top of the page. I added an
anchor tag <a name=#bottom> to the html and tried to attach javascript to
the click event of the button that creates <a href=#bottom>, but it won't
work. Does anyone know the best way to do this? I am using ASP.NET 1.1.
Thanks,

Apr 20 '06 #2
Thanks for Rich's input,

Hi magreenb,

Here are some other web articles discussing on use script code to control
scrolling in web page:

#How to Scroll a Page With JavaScript
http://www.mediacollege.com/internet...ge/scroll.html
http://www.mediacollege.com/internet...ge/scroll.html
Hope also helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 21 '06 #3
Thanks Steven and Rich for your replies!

I implemented Rich's suggestion last night and it works great. I'll
definitely check out Steven's links today.

Thanks,
Mark

"Steven Cheng[MSFT]" wrote:
Thanks for Rich's input,

Hi magreenb,

Here are some other web articles discussing on use script code to control
scrolling in web page:

#How to Scroll a Page With JavaScript
http://www.mediacollege.com/internet...ge/scroll.html
http://www.mediacollege.com/internet...ge/scroll.html
Hope also helps.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 21 '06 #4
You're welcome Mark,

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 24 '06 #5

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

Similar topics

0
2518
by: Keller | last post by:
We're incorporating Google Adsense into our website and are trying to have the ad box scroll with the page. Ideally the layer would move with the page as people are scolling down. I've seen...
14
2763
by: eric | last post by:
I am attempting to create <A HREF> links to <A NAME> targets in a series of extremely wide web pages composed of tables with text and images sitting side by side. This is a failure since both...
1
11817
by: Stan Brown | last post by:
On every page I have a <p ID="URhere"> that appears only when you print. (It's "display:none" in the general style sheet.) It would be nice if I could suggest that the browser print it at the...
13
7272
by: al jones | last post by:
I guess one question at a time will work better. URL http://aljones.us (yes, I'm back again) I'd like to cause this whole page to fill the viewable window if I can. Meaning that I'd like the...
0
869
by: Paul Fi | last post by:
when i scroll up and down a page i want the panel inside to move as well so that it doesnt disppear when scrolling the page: now i have this javascript code, that does that, but it's not so...
3
24617
by: somaboy mx | last post by:
I'm looking for a way to keep a footer menu attached to the bottom of the browser window, overlapping other content if the page height exceeds the browser window's height. so far, I've com up...
1
2650
by: Edward | last post by:
I created a simple CSS layout (code and example below) for bloggin/writing but ran into five issues that I need help with: 1. How do I get rid of the right-margin red line on the last three...
4
1264
by: gobi517 | last post by:
hi... i have just started with web pages designing using ASP. I have created a horizontal menu in my header. What i want is, if the window is made smaller, ONLY the HORIZONTAL SCROLLBAR should...
0
3337
by: metaphysics | last post by:
I am using a jQuery script called LocalScroll, and I have a quick problem that needs fixing. The demo for the script is here: jQuery.LocalScroll - Regular Demo, and the documentation is here: Ariel...
4
1896
by: rosta | last post by:
Hi, I found following problem in FF 3.0.9 (it looks it is FF problem only). See few lines of code below: <html> <head> <title>TEST</title> <script type="text/javascript"> ...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5014
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
4673
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
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
382
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.