Method Description
GetListCount(text_file) Counts the number of items linked
in the text file
GetListIndex(text_file) Gets the index of the current
page in the text file
GetNextDescription(text_file) Gets the description of the
next page listed in the text
file
GetNextURL(text_file) Gets the URL of the next page
listed in the text file
GetNthDescription(text_file, number) Gets the description
of the Nth page listed in the text
file
GetNthURL(text_file, number) Gets the URL of the Nth page
listed in the text file
GetPreviousDescription(text_file) Gets the description
line of the previous page listed in
the text file
GetPreviousURL(text_file) Gets the URL of the previous
pages listed in the text file
Examples
1. The Content Linking Component
This example builds a table of contents.
Coding
<html>
<body>
<p>
The example below builds a table of contents.
</p>
<%
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
seperated by the TAB character.
</p>
<p>
<a href="text/links.txt"><img border="0" src="../images/btn_view_text.gif"></a>
</p>
</body>
</html>
Output
The example below builds a table of contents.
· Introduction to ASP
· The Basic Syntax Rules
· Asp Variables
· ASP Procedures
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 seperated by the TAB
character.
View Text file
asp_intro.asp Introduction to ASP
asp_syntax.asp The Basic Syntax Rules
asp_variables.asp Asp Variables
asp_procedures.asp ASP Procedures
The example uses the Content Linking Component to navigate
between the pages in a text file.
<a href="text/links2.txt"><img border="0" src="../images/btn_view_text.gif"></a>