System.Web.UI.WebControls.ButtonField.CreateField Method

Creates and returns a new instance of the System.Web.UI.WebControls.ButtonField class.

Syntax

protected override DataControlField CreateField ()

Returns

A new instance of the System.Web.UI.WebControls.ButtonField class.

Remarks

The ButtonField.CreateField method is a helper method that is used by the DataControlField.CloneField method of the base class to create an empty System.Web.UI.WebControls.ButtonField object to which to copy the properties of the current System.Web.UI.WebControls.ButtonField-derived object.

Requirements

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