This documentation is archived and is not being maintained.

NextPreviousPagerField::ButtonCssClass Property

Gets or sets the cascading style sheet (CSS) class that is used to render the buttons of the pager field on the browser.

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

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

Property Value

Type: System::String
The CSS class used to render the buttons of the pager field on the client. The default is an empty string, which indicates that the ButtonCssClass property is not set.

Use the ButtonCssClass property to specify the CSS class to render on the browser for the buttons of the pager field. This property will always be rendered as the class attribute, regardless of the browser.

NoteNote:

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

The value of this property is stored in viewstate.

The following example shows how to use the ButtonCssClass property to specify a CSS class for buttons in the NextPreviousPagerField object of a DataPager control.

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

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: