Export (0) Print
Expand All

QueryStringText Property

.NET Framework 1.1

Returns the query string that accompanied the request.

public string QueryStringText {
   get
}

Remarks

The property returns any characters in the request that follow the question mark (?) in the URL. This value can be different from HttpRequest.ServerVariable["QUERY_STRING"] property. For devices where a unique file path suffix is inserted into a URL for postback, this property automatically strips out the file path suffix. For example, if the original query is "/home.aspx?id=john+doe", the value of the QueryStringText property will be "id=john+doe". A following postback URL could be "/home.aspx?_ufps=20292303920&id=john+doe". On this last postback, the value of QueryStringText property will again be "id=john+doe", because the unique suffix will be stripped out.

See Also

ServerVariable

Applies to: MobilePage Class

Show:
© 2014 Microsoft