[This is preliminary documentation and subject to change]

### GetNextURL

The GetNextURL method retrieves the URL of the next item in the Content Linking List file.

###### Syntax

NextLink.GetNextURL(listURL)

###### Parameters

listURL
  The location of the Content Linking List file.

###### Return Values

This method returns the URL of the next page specified in the Content Linking List file. If the current page is not specified in the Content Linking List file, GetNextURL returns the URL of the last page on the list.

###### Example

The following example uses the GetNextURL method to embed a link to the next page in the Content Linking List file. The advantage of using GetNextURL is that when you change the order or number of the content pages, you only have to update the list in Content Linking List file and do not need to update the navigational links on each page. A more complete example is at the bottom of Content Linking Component.

--- NextLink_GetNextURL.asp ---

    <%
      ListFile = "/Data/nextlink.txt"
      Set objNextLink = Server.CreateObject("MSWC.NextLink")
      NextPageURL = objNextLink.GetNextURL(ListFile)
      ThisPageIndex = objNextLink.GetListIndex(ListFile)
      If 0 = ThisPageIndex Then
        Response.Write "This page is not listed in your Content Linking List file.<BR>"
      Else
        Response.Write "The URL of the next page is<BR>"
        %><A HREF="<%=NextPageURL%>"><%=NextPageURL%></A><%
      End If
    %>

###### See Also

GetPreviousURL, GetNthURL, GetNextDescription

© 1997-2001 Microsoft Corporation. All rights reserved.