QueryStringValue Property

DataPagerField.QueryStringValue Property

.NET Framework (current version)
 

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 string QueryStringValue { get; }

Property Value

Type: System.String

The value of the query string field.

When the DataPager.QueryStringField property is not an empty string or null, 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.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft