Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Content Linking Component GetNextURL Method

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

Arguments: ASP Content Linking Component GetNextURL Method

listURL

The location of the Content Linking List file.

Return Values: ASP Content Linking Component GetNextURL Method

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.

Examples: ASP Content Linking Component GetNextURL Method

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 the Content Linking List file and do not need to update the navigational links on each page.

<% Set NextLink = Server.CreateObject ("MSWC.NextLink") %>

<A HREF="<%= NextLink.GetNextURL ("/data/nextlink.txt") %>">Next Page </A>

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.