473,388 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

linking content asp

229 100+
Hi,
I have set up a next navigation with this code

Expand|Select|Wrap|Line Numbers
  1. <% Set NextLink = Server.CreateObject ("MSWC.NextLink") %> 
  2.  
  3. <A HREF="<%= NextLink.GetNextURL ("/links.txt") %>">Next Page </A>
and a .txt file like so

Expand|Select|Wrap|Line Numbers
  1. submit2.asp    
  2. directoryaaaa.asp?categoryid=1
  3. websitedesign2.asp    
It works fine, but when I add categories like so

Expand|Select|Wrap|Line Numbers
  1. directoryaaaa.asp?categoryid=1
  2. directoryaaaa.asp?categoryid=2
  3. directoryaaaa.asp?categoryid=3
which is what I really want to do, that is have a next navigation through my database generated categories, it doesnt work. If I add more than one category it leaps from the first to the last and then stops there, and doesnt continue through any more pages.

Anyone know what might be causing this, some conflict with other asp code on the page concerned, like QueryString or intRecord. (It does include a lot more asp code)?

Anyone know a better way, although I have tried several methods I have found on the internet they all come unstuck with the same problem.
Any help would be greatly appreciated.
Thanks
Richard
Sep 7 '07 #1
5 2011
fran7
229 100+
Hi there, Really hope someone can help.

Anyone know how to make the adjustments to this so that it gets the next url,
GetNextURL. This one writes the all the links to the page from the links.txt. I need just a next link that fetches the next url to navigate.


Expand|Select|Wrap|Line Numbers
  1. <% 
  2. dim a 
  3. dim b 
  4. set nl=server.createobject("MSWC.Nextlink") 
  5. a = nl.GetListCount("link\links.txt") 
  6. b = 1 
  7. %> 
  8. <ul> 
  9. <%do while (b <= a) %> 
  10. <li><a href="<%=nl.GetNthURL("link\links.txt", b)%>"> 
  11. <%=nl.GetNthDescription("link\links.txt", b)%></a> 
  12. <% 
  13. b = (b + 1) 
  14. loop 
  15. %>
Thanks for any help.
Richard
Sep 8 '07 #2
markrawlingson
346 Expert 100+
Hi Richard,

This resource may be helpful to you: GetNextURL

It explains all of NextLink's methods and how to use them, including the GetNextURL method.
Sep 8 '07 #3
fran7
229 100+
Thanks, Thats just what I wanted.
Richard
Sep 9 '07 #4
fran7
229 100+
Hi, Anyone any idea why this content linking, reads the first entry in the links.txt file, and the last and skips all the database generated pages in between. Then gets stuck on the last one and goes no further.

There is no problem with the syntax as I have tried 5 different versions of the code and they all stop working with the database categories. It works fine when they are just normal static pages.


Expand|Select|Wrap|Line Numbers
  1.     <% Set NextLink = server.createobject ("MSWC.Nextlink") %>      
  2. <%= NextLink.GetNextURL ("\peter.txt") %>
Expand|Select|Wrap|Line Numbers
  1. /peter.asp?categoryid=1    ttttt
  2. /peter.asp?categoryid=2    yyyyy
  3. /peter.asp?categoryid=4    rrrrrr
  4. /peter.asp?categoryid=3    xxxxx
  5. /peter.asp?categoryid=5    ppppp
The categories load fine when in a normal menu.

This is driving me mad.
Thanks
Richard
Sep 10 '07 #5
jhardman
3,406 Expert 2GB
no, I have no idea. Please stop starting new threads to ask the same question over and over again. I have merged three of your threads. Don't start a new thread unless you are asking a new question. A better way to get a response is to PM an expert and ask him to look into your post.

MODERATOR
Sep 11 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: George Hernandez | last post by:
I have a site on a set of Linux Servers where my site is PHP enabled and I would like to prevent people from externally linking to content on my site and replace it with a warning image. I've...
1
by: Mike | last post by:
I need to have some links within an xml document to external pages. I have tried with the below xml and xsl documents(the proposed link has a tag called link under paragraph): XML:...
3
by: Headless | last post by:
Should linking generated content work? Example: span:before{content:"foobar"} <a href="foobar.htm"><span></span></a> I stumbled across this bit in the CSS2 spec: >Generated content does...
15
by: Rob Ratcliff | last post by:
I'm compiling the latest version of a CORBA ORB called MICO on a Cray X1. It makes heavy use of templates and namespaces. Up until the link step, the C++ source code compiled flawlessly. But, when...
4
by: Gary Hughes | last post by:
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188)...
0
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along...
0
by: nachitas | last post by:
I was wondering if anybody could help me with this. I am new to CSS and think I understand it. My problem is that I had my template page working (it would update all my other pages) until I...
1
by: sureshkmsc | last post by:
hi guys i am using Content Linking Component. not display the links.txt(notepad) content. Anything problem this coding <% dim c dim i set nl=server.createobject("MSWC.Nextlink") c =...
4
by: naveenmurthy | last post by:
Hello All, I have created a .mht file in following format. 1. The .mht file contains following htmls. a. MHTLinkingProblem.html b. Left.html c. Right.html d. Start.html
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.