ButtonType Enumeration

 

Specifies the different types of buttons that can be rendered in a Web Forms page.

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

type ButtonType

Member nameDescription
Button

A command button.

Image

A button that displays an image.

Link

A hyperlink-style button.

The ButtonType enumeration is used to represent the different types of buttons (such as command button, image button, link button, and so on) that can be rendered on an ASP.NET page. It is commonly used by properties such as the ButtonType property of the ButtonFieldBase class to indicate which button type is being used by the parent control.

The following example demonstrates how to use the ButtonType enumeration to specify that link buttons are displayed in a ButtonField field column of a GridView control. The ButtonType property of a ButtonField object is declaratively set to ButtonType.Link.

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

.NET Framework
Available since 2.0
Return to top
Show: