MobilePage.QueryStringText Property

Gets the query string that accompanied the request.

Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile (in system.web.mobile.dll)

public:
property String^ QueryStringText {
	String^ get ();
}
/** @property */
public String get_QueryStringText ()

public function get QueryStringText () : String

Not applicable.

Property Value

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1

Community Additions

ADD
Show: