locked
NEED a HELP WITH THIS ERROR RRS feed

  • Question

  • User1830103616 posted

    I am getting this error

    Microsoft VBScript runtime error '800a000d'

    Type mismatch

    /order/search/searchresults.asp, line 597

    when I insert the postcode to search the shop, but if I reload the webpage it disappear. Could someone help me to fix it? postcode research

    ddd=0
    if request.querystring("searchtype") = "postcode" then
        If objRds("longitude") & "" <> "" AND objRds("latitude") & "" <> "" Then
           ' Response.Write("lat1 " & coords(0) & " lon1 " & coords(1) & " [] lat2 " & objRds("latitude") & "  lon2 " & objRds("longitude") & "<br/>")                          
    
    
            ddd = round(distance(coords(0), coords(1), objRds("latitude"), objRds("longitude"), "M"),1)
    
    
    'Response.Write("ddd " & ddd & "<br/>")                         
        End If
    Friday, September 29, 2017 1:58 PM

All replies

  • User-460007017 posted

    Hi pippopagano81,

    Do you mean that refresh the page could fix this issue? have you checked whether any value could get to null when you load the page first time?

    Best Regards,

    Yuk Ding

    Tuesday, October 3, 2017 2:03 AM
  • User1830103616 posted

    Hi Yuk,

    Thank you for answering me.

    Yeah, if I refresh the page, it shows me the shops near to the postcode inserted and the issue disappear.

    Do I have to check the value of Lat and Long added into the software?

    Best regards

    Filippo

    Tuesday, October 3, 2017 7:54 AM
  • User-460007017 posted

    Hi pippogagano81,

    It just looks like an initialization issue or postback issue. Maybe you could consult the asp.net forum for help.

    Best Regards,

    Yuk Ding

    Thursday, October 5, 2017 3:36 AM