QueryString Property

Applies To  

The QueryString property retrieves the values of the arguments passed to the server in the URL string. Arguments are listed at the end of the URL string. The beginning of the argument list is marked by the question mark (?) symbol; arguments are separated by the ampersand (&) symbol. (QueryString collection, Read-Only.)

Syntax (VBScript)

Value = Request.QueryString(ArgName)(Index).Property

Syntax (JavaScript)

Value = Request.QueryString.Item (ArgName)(Index).Property

It is recommended that you use the helper_js.csp file for cross-platform compatibility. See Some key functions in helper_js.csp for more information.

Parts

Value

Variant value of the argument.

ArgName

Optional string for the name of the argument. If you do not specify this item, then one of the properties listed in QueryString Collection Properties must be specified. If you do specify this item you may still specify the Property item although in this case it will be one of the items defined in Argument Properties.

Property

Optionally specify one of the properties described in QueryString Collection Properties. Specify this if you have not included the ArgName. If you did include the ArgName, then this will be one of the properties described in Argument Properties.

Index

Optional integer value for an index that enables you to select a particular value from an argument that has multiple values. The index is one-based.

Remarks

If you do not include any parameters when using this property the entire query string will be returned without it being parsed. For further information on how to use the QueryString property, see Passing arguments between CSP pages.

Refer to the tables below for QueryString Collection Properties and Argument Properties.

QueryString Collection Properties

Property Description

Count

The number of arguments in the QueryString. (Long)

Item (Index)

Given an index or ordinal value retrieves a particular argument. (Argument)

Argument Properties

Property Description

Count

The number of values a particular argument has. Use this in conjunction with the Index item to iterate through all the values a particular argument may have. (Long)

Item (Index)

Given an index retrieves the value of the argument. Use Index to retrieve values form an argument that has multiple values.



Crystal Decisions, Inc.
http://www.crystaldecisions.com
Support services:
http://support.crystaldecisions.com