Skip to main content
Inspiring
July 24, 2007
Answered

Recordset Nav and added URL

  • July 24, 2007
  • 3 replies
  • 414 views
I'm sure this is something simple, but...

I have a recordset that pages at 25 records. The first asp page comes up fine but when I advance the recordset, it adds a directory prior to the index.asp page.

As in http://www.thequestfor.com/ - becomes - http://www.thequestfor.com /TQF/index.asp?offset=25

The directory layer it's adding is a valid directory (it's actually the root of the domain) but any idea why it's being added? And what's pulling it?

Any help would be appreciated.

Thanks,

Ron
This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer RTD13
Problem Solved...

This line:

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

was the issue. The RequestServer Variables was pulling the entire structure under the top level domain, in essence doubling the directory structure. I removed that call and all is well now. Thanks for your help Paul.

Ron

3 replies

Participating Frequently
July 26, 2007
Ron,
This can only be a problem with the link the recordset navigation has created. If you can't edit out the directory manually then i'd say look at the point when you created the recordset paging/navigation. There is a dropdown to choose the link you want to use. I can only assume that this process has somehow added the extra directory. You should have code that looks like this:

<% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">Next</a>
<% End If ' end Not MM_atTotal %>

I'd be happy to look at your code for you if you post it here.

Regards

Paul
RTD13Author
Inspiring
July 26, 2007
Hi Paul,

Thanks for the response. I've attached the code below.

The page is pretty simple 1 recordset with 3 fields and the nav bar and can be seen at www.thequestfor.com.

TIA for any help.

Ron
RTD13AuthorCorrect answer
Inspiring
July 26, 2007
Problem Solved...

This line:

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

was the issue. The RequestServer Variables was pulling the entire structure under the top level domain, in essence doubling the directory structure. I removed that call and all is well now. Thanks for your help Paul.

Ron