System.Web.UI.WebControls.ButtonType Enumeration

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

Syntax

public enum ButtonType

Remarks

The System.Web.UI.WebControls.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 ButtonFieldBase.ButtonType property of the System.Web.UI.WebControls.ButtonFieldBase class to indicate which button type is being used by the parent control.

Members

Member NameDescription
Button

A command button.

Image

A button that displays an image.

A hyperlink-style button.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0