ASP about Dynamic Data display page to anchor Point
Source: Internet
Author: User
Static page anchor point problem should not have any problems, today encountered a Dynamic Data display page Anchor point problem, research a bit, take out and share with you.
The anchor point is "top" and can be placed anywhere on the page, usually at the head of the page. The red part of the program is the key, is to anchor the appearance of the judge, I set the number is 4, meaning that there are 4 dynamic data on the occurrence of an anchor point, less than 4 when the same page, there is no need for anchor point, this value can be modified according to the actual situation. In order to beautify the page, you can replace the anchor point text with a graphic replacement of top to .
<a name= "Top" ></a>
...... (Specific content omitted)
<%
while (repeat2__numrows <> 0) and (not RSP. EOF))
%>
...... (Specific content omitted)
<%
Repeat2__index=repeat2__index+1
Repeat2__numrows=repeat2__numrows-1
If repeat2__numrows < 4 Then
Response.Write ("<table width=400 border=0 cellpadding=0 cellspacing=1><tr><td align=right><a href= #top >top</a></td></tr></table> ")
Else
Response.Write ("<table width=400 border=0 cellpadding=0 cellspacing=1><tr><td align=right>a</ Td></tr></table> ")
End If
Rsp. MoveNext ()
Wend
%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.