ASP dynamic data display page anchor point

Source: Internet
Author: User

The anchor is" Top ", Which can be placed anywhere on the page, generally the top.ProgramThe red part is the key, that is, the judgment on the appearance of the anchor. The value I set is 4 Appears 4 Dynamic Data contains one anchor, less 4 Because it is still on the same page, there is no need for an anchor to appear. This value can be modified according to the actual situation. To beautify the page, you can replace the text of the anchor with a graph. Top Replace .

<A name = "TOP"> </a>

...... (Content omitted)

<%

While (repeat2 _ numrows <> 0) and (not RSP. EOF ))

%>

...... (Content omitted)

<%

Repeat2 _ Index = repeat2 _ index + 1

Repeat2 _ numrows = repeat2 _ numRows-1

If repeat2 _ numrows <4Then

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

%>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.