This documentation is archived and is not being maintained.

NumericPagerField::CurrentPageLabelCssClass Property

Gets or sets the cascading style sheet (CSS) class that is used to style the current page number.

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

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

Property Value

Type: System::String
The CSS class that is used to style the current page number in the browser. The default is an empty string (""), which indicates that the CurrentPageLabelCssClass property is not set.

Use the CurrentPageLabelCssClass property to specify the CSS class that is used to style the Label object that represents the number of the page that is currently selected. The CurrentPageLabelCssClass property is always rendered as a class attribute, regardless of the browser.

NoteNote

On browsers that do not support CSS, setting the CurrentPageLabelCssClass 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 current page number 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, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: