...

View Full Version : ASP Record Paging



andybrown19
02-25-2007, 12:19 PM
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


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


' 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

degsy
02-28-2007, 02:45 PM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum