Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ASP Record Paging

    hi guys, need a bit of help with my recordset paging, i havent changed anything from the "stock" settings so in theory it should work!

    i can browse the site fine using the localhost loopback but wen i access it from a remoter PC i get the error message

    Code:
    Microsoft VBScript runtime error- Error '800a000d' 
    
    Type mismatch: '[string: "10?offset=20"]' 
    
    /index.asp, line 136

    i have noticed whilke browsing locally the address is slightkly diffrent as it says "http://localhost/index.asp?offset=20" locally but wen remote it says "http://62.31.60.18/?offset=10?offset=20"

    feel free to look at the site http://62.31.60.18

    the code from lines 130 - 140 follow

    Code:
     ' use index parameter if defined, otherwise use offset parameter
      MM_param = Request.QueryString("index")
      If (MM_param = "") Then
        MM_param = Request.QueryString("offset")
      End If
     If (MM_param <> "") Then
       MM_offset = Int(MM_param)
      End If
    
      ' if we have a record count, check if we are past the end of the recordset
      If (MM_rsCount <> -1) Then"
    Thanks for any help guys

    Cheers

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    http://62.31.60.18/?offset=10?offset=20
    That is an invalid URL. You have mixed up the ? with a &

    http://62.31.60.18/?offset=10&offset=20"


    i have noticed whilke browsing locally the address is slightkly diffrent as it says "http://localhost/index.asp?offset=20" locally but wen remote it says "http://62.31.60.18/?offset=10?offset=20"
    That is a basic webserver configuration.

    Webserver have default "home" pages.
    usually in ASP it is default.asp or index.asp ( or .htm)

    It means that you can reference a directory name and the default file will be called.

    So if it is setup correctly
    http://62.31.60.18/?offset=10&offset=20

    should be the same as
    http://62.31.60.18/index.asp?offset=10&offset=20

    Check it by loading that URL


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •