This documentation is archived and is not being maintained.

DataPagerField::QueryStringValue Property

Gets the value of the query string field from the URL of the request.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected:
property String^ QueryStringValue {
	String^ get ();
}

Property Value

Type: System::String
The value of the query string field.

When the DataPager::QueryStringField property is not an empty string or nullptr, the DataPager control uses the HTTP GET command to navigate through the pages. A query string field that consists of a name/value pair is added to the URL of the page. The QueryStringValue property retrieves the value of the query string field from the URL of the request. The QueryStringValue property contains the requested page number.

This property is used by the NumericPagerField and NextPreviousPagerField pager fields to evaluate the index of the first record for the page of data requested. The page properties of the DataPager control are then updated.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

.NET Framework

Supported in: 3.5
Show: