Name
GetPreviousDescription —
objNextLink
.GetPreviousDescription(
strContentLinkList
)
Synopsis
Returns an ASCII string containing the description of the previous 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 strPrevDesc
' Create an instance of the NextLink object.
Set objNextLink = Server.CreateObject("MSWC.NextLink")
' Retrieve a description text for the previous item in
' the Content Linking list file.
strPrevDesc = _
objNextLink.GetPreviousDescription("/MyContentLinkList.txt")
' Display the previous description to the client.
%>
<%= strPrevDesc%>
<%
' Free the memory consumed by the NextLink object.
Set objNextLink = Nothing
%>
. . . [additional HTML and code]Notes
If the current page cannot be found in the Content Linking list file, the description text for the first item in the list file is returned by default. If the current item is the first item in the list, calling GetPreviousDescription will return 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