Page.ClientQueryString 属性

定义

获取请求的 URL 的查询字符串部分。Gets the query string portion of the requested URL.

public:
 property System::String ^ ClientQueryString { System::String ^ get(); };
public string ClientQueryString { get; }
member this.ClientQueryString : string
Public ReadOnly Property ClientQueryString As String

属性值

String

请求的 URL 的查询字符串部分。The query string portion of the requested URL.

注解

ClientQueryString属性包含浏览器所请求 URL 的查询字符串部分。The ClientQueryString property contains the query string portion of the URL requested by the browser. 例如,如果请求的 URL 为 http://www.contoso.com/default.aspx?id=100 ,则 ClientQueryString 属性将包含 "id = 100"。For example, if the requested URL is http://www.contoso.com/default.aspx?id=100, the ClientQueryString property will contain "id=100". ClientQueryString 属性进行编码; 使用 HttpServerUtility.UrlDecode 方法对查询字符串进行解码。The ClientQueryString property is encoded; use the HttpServerUtility.UrlDecode method to decode the query string.

适用于