Avatar of dory550
dory550
 asked on

Named Links

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
Web ComponentsASP

Avatar of undefined
Last Comment
dory550

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ishaan Rawat

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Scott Fell

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

Gary

Named Links...

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

Further down the page
<a name="morecontent">More Content Heading</A>
Scott Fell

@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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Gary

True, I'm not very upto date...
dory550

ASKER
Thanks
Dory