NumericPagerField::NumericButtonCssClass Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

public:
property String^ NumericButtonCssClass {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The CSS class that is used to style the page-number buttons of the pager field. The default is an empty string (""), which indicates that the NumericButtonCssClass property is not set.

Page-number buttons are displayed by the NumericPagerField class to enable users to navigate directly to individual pages. The CSS class specified by the NumericButtonCssClass property is applied to all page numbers that are displayed by the NumericPagerField object, except for the page that is currently selected. The page currently selected page uses the CSS class that is specified by the CurrentPageLabelCssClass property.

The NumericButtonCssClass property is always rendered as a class attribute, regardless of the browser.

System_CAPS_noteNote

On browsers that do not support CSS, setting the NumericButtonCssClass 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 page number buttons in the NumericPagerField object of a DataPager control.

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

.NET Framework
Available since 3.5
Return to top
Show: