案例:ASP/ADO案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<html>
3
<body>
4
5
<p>下面的例子构建了一个内容列表:</p>
6
7
<%
8
dim c
9
dim i
10
set nl=server.createobject("MSWC.Nextlink")
11
c = nl.GetListCount("/example/aspe/links.txt")
12
i = 1
13
%>
14
<ul>
15
<%do while (i <= c) %>
16
<li><a href="<%=nl.GetNthURL("/example/aspe/links.txt", i)%>">
17
<%=nl.GetNthDescription("/example/aspe/links.txt", i)%></a>
18
<%
19
i = (i + 1)
20
loop
21
%>
22
</ul>
23
24
<p>文本文件包含页面 URL 的列表和链接描述。
25
每行文本针对一个页面。
26
请注意,URL 和描述必须由 TAB 字符分隔。
27
</p>
28
29
<p>
30
<a href="/example/aspe/links.txt">查看 links.txt</a>
31
</p>
32
33
</body>
34
</html>
35