Named Links

dory550
dory550 used Ask the Experts™
on
Hi guys
I am using classic ASP in my website
I have this asp webpage with one link (More,,,)  -see attachment-
I would like the user to click on More... and be taken to a section further down in the same webpage.
I tried using the the name attribute but could not get it working.
Thanks
Dory
DemoLink.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Designer | Developer | Programmer
Commented:
Try this....

<a href="#ID">More...</a>                //ID can be anything
...

<div id="ID">                                     // where you want your page to go...
xxxxxx
</div>
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
The ID in this case does not have to be a number.  It could be any alpha-numeric.  Below is a sample that using asp-vb.  YOu can place the "ID" the link refers to on just about any element <div id="abc"><td id="abc"><span id="abc"><ul id="abc"><li id="abc">

<%
dim ItemNo
ItemNo="35"
' in your case, it would look more like
' ItemNo = rsItems.ID
%>

<a href="#<%=ItemNo%>">More...</a>  


<table width="500" border="0" cellspacing="0" cellpadding="1">
<%for x = 1 to 50%>
  <tr>
    <td id="<%=x%>"><%=x%></td>
    <td>stuf</td>
    <td>stuff</td>
    <td>stuff</td>
  </tr>
  <%next%>
</table>

Open in new window

Expert of the Year 2014
Top Expert 2014

Commented:
Named Links...

Your link for example
<a href="#morecontent">More</a>

Further down the page
<a name="morecontent">More Content Heading</A>
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
@GaryC123, I think the "a name" is going obsolete.   http://dev.w3.org/html5/markup/a.html.   While it still works, it is probably better to not use it for anything new.
Expert of the Year 2014
Top Expert 2014

Commented:
True, I'm not very upto date...

Author

Commented:
Thanks
Dory

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial