The Content Linking component manages a list of URLs so that you can treat the pages in your Web site like the pages in a book. You can use the Content Linking component to generate and update automatically tables of contents and navigational links to previous and subsequent Web pages. This is ideal for applications such as online newspapers and forum message listings.
The Content Linking component references a Content Linking List file that contains the list of the linked Web pages. This list is stored on the Web server.
Nextlink.dll |
The Content Linking component. |
A text file that contains a list of Web pages in the order in which they should be displayed. This file must be available on a Web server virtual path. |
Set NextLink = Server.CreateObject("MSWC.Nextlink")
NextLink
Specifies the name of the object created by the call to Server.CreateObject.
None.
Counts the number of items linked in the Content Linking List file. | |
Gets the URL of the next page listed in the Content Linking List file. | |
Gets the description line of the previous page listed in the Content Linking List file. | |
Returns the index of the current page in the Content Linking List file. | |
Gets the description of the Nth page listed in the Content Linking List file. | |
Gets the URL of the previous pages listed in the Content Linking List file. | |
Gets the description of the next page listed in the Content Linking List file. | |
Gets the URL of the Nth page listed in the Content Linking List file. |
The following example builds a table of contents.
<ol> <% Set NextLink = Server.CreateObject ("MSWC.NextLink") %>
<% count = NextLink.GetListCount ("/data/nextlink.txt") %>
<% I = 1 %> <ul> <% Do While (I <= count) %>
<li><a href=" <%= NextLink.GetNthURL ("/data/nextlink.txt", I) %> ">
<%= NextLink.GetNthDescription ("/data/nextlink.txt", I) %> </a>
<% I = (I + 1) %>
<% Loop %>
</ul>
</ol>
The following script adds the next-page and previous-page buttons to an HTML file.
<% Set NextLink = Server.CreateObject ("MSWC.NextLink") %>
<% If (NextLink.GetListIndex ("/data/nextlink.txt") > 1) Then %>
<a href=" <%= NextLink.GetPreviousURL ("/data/nextlink.txt") %> ">
Previous Page</a>
<% End If %>
<a href=" <%= NextLink.GetNextURL ("/data/nextlink.txt") %> ">Next Page</a>
© Microsoft Corporation. All rights reserved.
file: /Techref/language/asp/comp/compref_14.htm, 5KB, , updated: 1996/11/21 19:01, local time: 2024/8/31 23:59,
18.189.192.235:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/techref/language/asp/comp/compref_14.htm"> Content Linking Component</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
The Backwoods Guide to Computer Lingo |
.