Content Linking 组件#
代码:
<!DOCTYPE html>
<html>
<body>
<br />
<p>
The example below builds a table of contents.
</p>
<br />
<%
dim c
dim i
set nl=server.createobject("MSWC.Nextlink")
c = nl.GetListCount("text\links.txt")
i = 1
%>
<ul>
<%do while (i <= c) %>
<li><a href="<%=nl.GetNthURL("text\links.txt", i)%>">
<%=nl.GetNthDescription("text\links.txt", i)%></a>
<%
i = (i + 1)
loop
%>
</ul>
<p>
The text file contains a list of page urls
and link descriptions. It contains one line of text for each page. Note that the url and
description MUST be separated by the TAB character.
</p>
<p>
<a href="text/links.txt"><img src="/images/btn_view_text.gif"></a>
</p>
</body>
</html>
结果:
The example below builds a table of contents.
相关文章
- ASP.NET Web Pages 教程
- ASP.NET Web Pages Email
- ASP.NET Web Pages PHP
- ASP.NET MVC HTML 帮助器
- ASP.NET CompareValidator 控件
- WebSecurity CreateAccount 方法
- HTML InputCheckbox
- HTML InputImage
- HTML InputRadiobutton
- ASP.NET HTML 控件 xml
- C# 实例 显示日期和时间
- VB 实例 实例解释
- ASP.NET Calendar NextPrevFormat 属性
- ASP.NET Button CausesValidation 属性
- ASP.NET RadioButtonList RepeatColumns 属性
- ASP.NET XML DocumentSource 属性
- 当用户点击链接时发送查询信息
- ASP.NET Parent 属性
- ASP.NET UniqueID 属性
- 清空缓存