Name
GetNextDescription —
objNextLink
.GetNextDescription(
strContentLinkList
)
Synopsis
Returns a string containing the description of the next document listed in the Content Linking list.
Parameters
-
strContentLinkList A string value representing the virtual or relative pathname and filename of your Content Linking file. You cannot use physical paths or absolute URLs (those beginning with http://, //, or \\) for this parameter.
Example
<HTML>
<HEAD>
<TITLE>Document List</TITLE>
<BODY>
<%
' Dimension local variables.
Dim objNextLink
Dim strNextDesc
' Create an instance of the NextLink object.
Set objNextLink = Server.CreateObject("MSWC.NextLink")
' Retrieve a description text for the next item in the
' Content Linking list file.
strNextDesc = _
objNextLink.GetNextDescription("/MyContentLinkList.txt")
' Display the next description to the client.
%>
<%= strNextDesc%>
<%
' Free the memory consumed by the NextLink object.
Set objNextLink = Nothing
%>
. . . [additional HTML and code]Notes
If the current document is not listed in the Content Linking list file, the description text for the last item in the list file is returned by default. If the current item is the last item in the list, calling GetNextDescription returns an empty string ("").
In addition to the previous example, see the full example at the end of this chapter.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access