Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004

    Unanswered: URLEncode Error with Search Page on 2003 Server

    I noticed recently that my search page on a Windows 2003 server comes back with some URLEncode errors when running a search of the catalog.

    More specifically here is the error.

    Microsoft VBScript runtime error '800a000d'

    Type mismatch: 'URLEncode'

    /cs/query.asp, line 347

    Here is the code it is refrencing

        ' Construct the URL for hit highlighting
    			WebHitsQuery = "CiWebHitsFile=" & Server.URLEncode( RS("vpath") )
    			WebHitsQuery = WebHitsQuery & "&CiRestriction=" & Server.URLEncode( Q.Query )
    			WebHitsQuery = WebHitsQuery & "&CiBeginHilite=" & Server.URLEncode( "<strong class=Hit>" )
    			WebHitsQuery = WebHitsQuery & "&CiEndHilite=" & Server.URLEncode( "</strong>" )
    			WebHitsQuery = WebHitsQuery & "&CiUserParam3=" & QueryForm
    '	        WebHitsQuery = WebHitsQuery & "&CiLocale=" & Q.LocaleID
    If I type in 04-080 in the search criteria one server (windows 2000) returns the results while the other (2003) returns a VBscript error URL Encode.

    Are there some differences between a 2000 server and 2003 server I need to know about?


    James Williams

  2. #2
    Join Date
    Jun 2003
    Don't know if this helps at all but at first glance I would think that Server.URLEncode() doesn't understand what Q.Query is.
    J. Paul Schmidt, Freelance Web and Database Developer
    Access Database Sample, Web Database Sample, ASP Design Tips

Posting Permissions

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