URL Query String Format

A simple URL with a query string parameter is:

http://OrderManagementSystem/ShowOrder.aspx?ID=10248

In this example, the text string “ID” is specified as the query string parameter in the Property Sheet.  The query string parameter “ID” is then used in the page’s URL.  The application recognizes “ID” as a valid query string parameter and uses the value assigned to ID in the URL as part of the SQL query.

The receiving page might use the query string parameter as part of a WHERE clause that filters, or limits, the data displayed in a table, e.g.:

Order.OrderID is equal to ID

Permissible query string parameters

The query string parameter can be any alphanumeric string you wish.  It does not have to match the database table’s field name or correspond to anything else.  Your application will parse the query string, extract the appropriate parameter and value, and perform the record lookup in the appropriate database table.

In use, the query string parameter follows the URL, as does “ID” in this example:

See Also

Using URL Parameters

Passing Primary and Foreign Key Values in URLs

Passing Field Values in URLs

Example: Passing a Record ID from an Add Record Page