please dont rip this site

Content Linking Component

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.

File Names

Nextlink.dll

The Content Linking component.

Content Linking List

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.

Syntax

Set NextLink = Server.CreateObject("MSWC.Nextlink")

Parameters

NextLink

Specifies the name of the object created by the call to Server.CreateObject.

Registry Entries

None.

Methods

GetListCount

Counts the number of items linked in the Content Linking List file.

GetNextURL

Gets the URL of the next page listed in the Content Linking List file.

GetPreviousDescription

Gets the description line of the previous page listed in the Content Linking List file.

GetListIndex

Returns the index of the current page in the Content Linking List file.

GetNthDescription

Gets the description of the Nth page listed in the Content Linking List file.

GetPreviousURL

Gets the URL of the previous pages listed in the Content Linking List file.

GetNextDescription

Gets the description of the next page listed in the Content Linking List file.

GetNthURL

Gets the URL of the Nth page listed in the Content Linking List file.

Example

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 18:01, local time: 2024/11/28 16:09,
TOP NEW HELP FIND: 
18.226.17.210: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?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/language/asp/comp/compref_14.htm"> Content Linking Component</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .