Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > BOOK: Beginning ASP 3.0
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 27th, 2005, 12:24 PM
Registered User
Join Date: Jul 2005
Location: Castries, n/a, Saint Lucia.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Linking to specific areas in a new page

I want to link from one page to another one with many sections, so I want to go to a specific section of that page and not to the top of the page. I've tried sending in a variable with the name of the section when the page is being requested, but that does not seem to work, and I get the page opened at the top of the document. Is there any way to link to a specific area on a new page, or do I just have to merge the two and use internal linking?

  #2 (permalink)  
Old July 28th, 2005, 08:07 AM
Friend of Wrox
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post

that's exactly what named anchors are for. just add #sectionName at the end of the link and it will scroll to that, providing the anchor has been defined.

For example, if page2.html contains <a name="Section2">
then in another page you can put <a href="page2.html#Section2">
  #3 (permalink)  
Old August 2nd, 2005, 09:23 AM
Registered User
Join Date: Jul 2005
Location: Castries, n/a, Saint Lucia.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks much,
It did work.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
If Else linking to HTML page nodster PHP How-To 1 June 7th, 2007 07:29 AM
Linking to the last accessed page mahulda ASP.NET 1.0 and 1.1 Basics 4 July 27th, 2004 12:49 AM
Page Linking though DropDown Lists mahulda ASP.NET 1.0 and 1.1 Basics 2 April 23rd, 2004 02:58 PM
Getting to Specific Page everest Classic ASP Databases 3 March 28th, 2004 01:04 AM
Login Page going to 3 different management areas stacy Classic ASP Databases 1 January 21st, 2004 09:18 AM

All times are GMT -4. The time now is 09:06 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.