Export (0) Print
Expand All

NumericPagerField::NextPreviousButtonCssClass Property

Gets or sets the cascading style sheet (CSS) class that is used to style the next-page and previous-page buttons of the pager field.

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

property String^ NextPreviousButtonCssClass {
	String^ get ();
	void set (String^ value);

Property Value

Type: System::String
The CSS class that is used to style the next-page and previous-page buttons of the pager field. The default is an empty string (""), which indicates that the NextPreviousButtonCssClass property is not set.

The next-page and previous-page buttons are displayed by the NumericPagerField class to let users access other pages of data when the total number of pages is greater than the value specified in the ButtonCount property. The NextPreviousButtonCssClass property is always rendered as a class attribute, regardless of the browser.


On browsers that do not support CSS, setting the NextPreviousButtonCssClass property has no effect.

The value of this property is stored in view state.

The following example shows how to specify a CSS class to style the next-page and previous-page buttons in the NumericPagerField object of a DataPager control.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, 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.

© 2014 Microsoft