Forum Moderators: buckworks
Microsoft VBScript runtime error '800a000d'
Type mismatch: '[string: ""]'
/search_results.asp, line 63
Does anyone have any idea of what I should look for in the VB script?
Here is a subsection of the area involved:
sALLSUB = Request.item("txtsearchParamCat")
iLevel = Request.item("iLevel")
if ilevel = 2 and sALLSUB = "ALL" then
sSubCat = Request.item("subcat")
end if
' Requests the variables depending on how the page is entered
If txtFromSearch = "fromSearch" Then
txtsearchParamTxt= trim(Replace(Replace(Request.Form("txtsearchParamTxt"), "'", "''"), "*", ""))
txtsearchParamType= trim(Request.Form("txtsearchParamType"))
if Ilevel = 2 and sALLSUB = "ALL" then
txtsearchParamCat= sSubCat
Ilevel = 1
else
txtsearchParamCat= trim(Request.QueryString("txtsearchParamCat"))
end if
txtsearchParamMan= trim(Request.Form("txtsearchParamMan"))
txtsearchParamVen= trim(Request.Form("txtsearchParamVen"))
txtDateAddedStart= MakeUSDate(trim(Request.Form("txtDateAddedStart")))
txtDateAddedEnd = MakeUSDate(trim(Request.Form("txtDateAddedEnd")))
txtPriceStart= trim(Request.Form("txtPriceStart"))
txtPriceEnd = trim(Request.Form("txtPriceEnd"))
txtSale= trim(Request.Form("txtSale"))
Else
txtsearchParamTxt= trim(Replace(Replace(Request.QueryString("txtsearchParamTxt"), "'", "''"), "*", ""))
txtsearchParamType= trim(Request.QueryString("txtsearchParamType"))
if Ilevel = 2 and sALLSUB = "ALL" then
txtsearchParamCat= sSubCat
Ilevel = 1
else
txtsearchParamCat= trim(Request.QueryString("txtsearchParamCat"))
end if
"http://mywebsite/search_results.asp?txtsearchParamTxt=&txtsearchParamCat=ALL &txtsearchParamType=ALL&iLevel=1&txtsearchParamMan=ALL&txtsearchParamVen=ALL &txtFromSearch=fromSearch&btnSearch.x=13&btnSearch.y=13"
When trying to view page 2 the "ALL" parameters are missing.Apparantly the search_results.asp needs values and therefore would not load. Initially, search_results.asp is set to only show 10 items, I increased to to 100 thereby avoiding the problem.
BTW, this is Lagarde's storefront 5 (seems like some kind of bug to me)
[edited by: jatar_k at 5:13 pm (utc) on Mar. 30, 2006]
[edit reason] added spaces to url to stop sidescroll [/edit]