Request Object Count property Problem

Results 1 to 2 of 2

Thread: Request Object Count property Problem

  1. #1
    Peter Surry Guest

    Default Request Object Count property Problem

    We are currently working on a intranet application using ASP pages. The code works fine on a development machine running NT workstation IIS4 and ASP2 but problems occur once the pages are posted to the main production IIS4 server. The following error message is displayed when form is submitted.<BR><BR>Microsoft VBScript runtime error &#039;800a01b6&#039; <BR>Object doesn&#039;t support this property or method: &#039;Count&#039; <BR>/BaseLine/ExistingSchemes/QuickForm.asp, line 335<BR><BR>The code starting at line 335 is as follows:<BR><BR>If Request.QueryString.Count = 1 Then<BR>Session("SchemeID") = Request.QueryString(1)<BR>End If<BR><BR>This can be overcome by using For Each/Next and using a counter. However, we do not understand why we cannot use a property of the Request object that is so fundamental.<BR> <BR>Has anybody had this problem before? I would be grateful for any explanations. <BR><BR>Many thanks.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Request Object Count property Problem

    The Request.QueryString collection does not have a property Count.<BR>(The items in that collection do have a count property.)<BR><BR>If you want to know how many items are present in the querystring, I think it&#039;s best to check how many items are present in the Request.ServerVariables("QUERY_STRING").

Posting Permissions

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