This section lists and describes query object properties and methods. See .Asp Examples for sample query forms constructed with query object properties and methods.
This section lists and describes the query object properties used in building .asp files.
Q.AllowEnumeration = TRUE
Q.Catalog = "kb"
Q.Columns = "DocAuthor, vpath, doctitle"
Q.LocaleID = 1033 ' EN-US locale code
Q.MaxRecords = 200
Q.OptimizeFor = "performance"
Q.Query = "#filename *.htm and dog near cat"
Q.SortBy = "DocAuthor, rank[d]"
This section lists and describes the query object methods used in building .asp files.
Executes a query and creates an ADO recordset for navigating through query results.
set recordset = Q.CreateREcordSet("sequential")
Defines a new friendly name for a column.
Q.DefineColumn "DocAuthor(DBTYPE_WSTR|DBTYPE_BYREF) = F29F85E0-4FF9-1068-AB91-08002B27B3D9 4"
Produces a uniform resource locator (URL) string reflecting the state of the query object.
Href = "http://server/sample.asp?" & Q.QuerytoURL()
Response.Write "<A Href=""" & href & """>Next page</A>"
Resets the state of the query object.
Q.Reset
Sets query parameters from a Web client request.
Q.SetQueryFromURL("qu=%40size+%3E+10000&so=rank%5bd%5d&mh=200")
The following table defines the conventional URL tags in the QUERY_STRING used by the SetQueryFromURL and QueryToURL methods.
URL Tags for the QUERY_STRING
Table Head Text | Table Head Text |
---|---|
qu | Full text of the query. Associated with the Query property. |
so | Sort. Associated with the SortBy property. |
sd | Sort down (in descending order). Associated with the SortBy property. |
ct | Catalog. Associated with the Catalog property. |
mh | Maximum hits. Associated with the MaxRecords property. |
ae | Allow enumeration. Associated with the AllowEnumeration property. If set to a nonzero digit, enumeration is allowed. |
op | Optimize for. Associated with the OptimizeFor property. The first character of the value can be x for performance or r for recall. |
Tags for Creating Built-Up Query Strings
The following tags create built-up query strings. In each, the n is a single digit in the range 09. The column, operator, and query for each numeric value make up a query term which is combined with the full-text query string and other query terms using the & operator.
Table Head Text | Table Head Text |
---|---|
cn | Column for a built-up query. Associated with the Query property. |
on | Operator for a built-up query. Associated with the Query property. |
qn | Query string for a built-up query. Associated with the Query property. |
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/asp/ix/ixaspqob.htm, 14KB, , updated: 1997/10/1 00:56, local time: 2025/2/2 04:47,
3.139.67.114:LOG IN
|
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/language/asp/ix/ixaspqob.htm"> Microsoft Index Server: Query Object</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.