Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll

my Blog
[prev. Lesson]  Content Linker: Table of Contents
     [next Lesson]  Content Linker Library

Content Linking List Box by Charles Carroll

Here is a script that will turn the Content Linking elements into a pull-down list so people can arbitrarily jump from one topic to another....

   filename=/learn/test/cljump.asp

<Test Script Below>


<HTML><HEAD><TITLE>cljump.asp</TITLE></HEAD>
<body bgcolor="#FFFFFF">
<FORM ACTION="cljumprespond.asp">
<%
Set TL = Server.CreateObject ("MSWC.NextLink")
maxi= cint(TL.GetListCount("/learn/learn.txt"))
%>
<SELECT name="whichtopic">
<OPTION SELECTED VALUE="">Select a Topic...
<%for i=1 to maxi%>
<OPTION value=
<%=TL.GetNthURL("/learn/learn.txt",i)%>
> 
<%
desc=TL.GetNthDescription("/learn/learn.txt",i)
if mid(desc,1,1)="*" then
    desc=mid(desc,2)
else
   desc="&nbsp;&nbsp;&nbsp;&nbsp;" & desc
end if 
%>
<%=desc%>
<%next%>
</SELECT>&nbsp;&nbsp;<INPUT VALUE="Jump to Lesson"  TYPE=submit></FORM>
</BODY>
</HTML>

The script named cljumprespond.asp that implements the jump looks like this:

   filename=/learn/test/cljumprespond.asp

<Test Script Below>


<%
response.redirect request.querystring("whichtopic")
%>

Chaz Wish List
Tall Tip $5
Grande Tip $20
Venti Tip $39
Tip Jar Thanks
2004 Thanks
2005 Thanks
HUGE Tip -love site