GetPreviousDescription

The GetPreviousDescription method retrieves a text description of the previous item in the Content Linking List file.

Syntax

NextLink.GetPreviousDescription( listURL )

 

Parameters
listURL
The location of the Content Linking List file.
Return Values

This method returns a string describing either the previous item in the Content Linking List file or, if the current page is not in the file, the first item on the list.

Example

A more complete example is at the bottom of Content Linking Component.

--- NextLink_GetPreviousDescription.asp ---

<%
  ListFile = "/data/nextlink.txt"
  Set objNextLink = Server.CreateObject("MSWC.NextLink")   
  ThisPageIndex = objNextLink.GetListIndex(ListFile) 
  If 0 = ThisPageIndex Then
    Response.Write "This page is not listed in your Content Linking List file.<BR>"
  ElseIf ThisPageIndex > 1 Then
    PreviousPageDesc = objNextLink.GetPreviousDescription(ListFile) 
    Response.Write "The description of the previous page is<BR>" & PreviousPageDesc 
  Else
    Response.Write "You are already at the beginning of the list<BR>" 
  End If
%>
 
See Also

GetNextDescription, GetNthDescription, GetPreviousURL


© 1997-2001 Microsoft Corporation. All rights reserved.