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.

System_CAPS_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.

.NET Framework
Available since 3.5
Return to top
Show: