This topic has not yet been rated - Rate this topic

MobilePage.QueryStringText Property

Gets the query string that accompanied the request. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)
[BrowsableAttribute(false)]
public string QueryStringText { get; }

Property Value

Type: System.String
The query string that accompanied the request.

The property returns any characters in the request that follow the question mark (?) in the URL. This value can be different from the ServerVariables 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 the QueryStringText property will again be "id=john+doe", because the unique suffix will be stripped out.

Caution noteCaution

If the key portion of the key/value pair stored in the QueryStringText property is the same as the ID property of a control on the MobilePage object, the view state and the key/value pair are removed from the QueryStringText property.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.