472,976 Members | 1,234 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

linking content asp

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

Expand|Select|Wrap|Line Numbers
  1. <% Set NextLink = Server.CreateObject ("MSWC.NextLink") %> 
  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.
Sep 7 '07 #1
5 1984
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.
Sep 8 '07 #2
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
229 100+
Thanks, Thats just what I wanted.
Sep 9 '07 #4
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.
Sep 10 '07 #5
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.

Sep 11 '07 #6

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

Similar topics

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...
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:...
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...
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...
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)...
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...
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...
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 =...
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.