Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Recordset Nav and added URL

Explorer ,
Jul 24, 2007 Jul 24, 2007
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
TOPICS
Server side applications
406
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 26, 2007 Jul 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
Translate
Explorer ,
Jul 26, 2007 Jul 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 26, 2007 Jul 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 26, 2007 Jul 26, 2007
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines