C# Class Nettiers.AdventureWorks.Web.UI.HyperLinkField

Represents a field that is displayed as a hyperlink in a data-bound control. Supports complex objects via DataContainer property.
Inheritance: System.Web.UI.WebControls.DataControlField
ファイルを表示 Open project: netTiers/netTiers Class Usage Examples

Private Properties

Property Type Description
OnDataBindField void
SetupProperties void

Public Methods

Method Description
Initialize ( bool sortingEnabled, Control control ) : bool

Performs instance initialization

InitializeCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex ) : void

Overridden. Initializes a cell in a HyperLinkField object.

InitializeDataCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState ) : void

Virtual. Initializes a cell in a HyperLinkField object.

ValidateSupportsCallback ( ) : void

Overridden. Indicates that the controls contained by the HyperLinkField object support callbacks.

Protected Methods

Method Description
CopyProperties ( System.Web.UI.WebControls.DataControlField newField ) : void

Overridden. Copies the properties of the current HyperLinkField object to the specified object.

CreateField ( ) : System.Web.UI.WebControls.DataControlField

Overridden. Returns a new instance of the HyperLinkField class.

FormatDataNavigateUrlValue ( object dataUrlValues ) : string

Virtual. Formats Url based using DataNavigateUrlFormatString

FormatDataTextValue ( object dataTextValues ) : string

Virtual. Formats Text using FormatDataTextValue

Private Methods

Method Description
OnDataBindField ( object sender, EventArgs e ) : void

Occurs when cell binds to the field value

SetupProperties ( object controlContainer ) : void

Is used to set properties of the HyperLinkField

Method Details

CopyProperties() protected method

Overridden. Copies the properties of the current HyperLinkField object to the specified object.
protected CopyProperties ( System.Web.UI.WebControls.DataControlField newField ) : void
newField System.Web.UI.WebControls.DataControlField
return void

CreateField() protected method

Overridden. Returns a new instance of the HyperLinkField class.
protected CreateField ( ) : System.Web.UI.WebControls.DataControlField
return System.Web.UI.WebControls.DataControlField

FormatDataNavigateUrlValue() protected method

Virtual. Formats Url based using DataNavigateUrlFormatString
protected FormatDataNavigateUrlValue ( object dataUrlValues ) : string
dataUrlValues object
return string

FormatDataTextValue() protected method

Virtual. Formats Text using FormatDataTextValue
protected FormatDataTextValue ( object dataTextValues ) : string
dataTextValues object
return string

Initialize() public method

Performs instance initialization
public Initialize ( bool sortingEnabled, Control control ) : bool
sortingEnabled bool
control System.Web.UI.Control
return bool

InitializeCell() public method

Overridden. Initializes a cell in a HyperLinkField object.
public InitializeCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlCellType cellType, DataControlRowState rowState, int rowIndex ) : void
cell System.Web.UI.WebControls.DataControlFieldCell
cellType DataControlCellType
rowState DataControlRowState
rowIndex int
return void

InitializeDataCell() public method

Virtual. Initializes a cell in a HyperLinkField object.
public InitializeDataCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState ) : void
cell System.Web.UI.WebControls.DataControlFieldCell
rowState DataControlRowState
return void

ValidateSupportsCallback() public method

Overridden. Indicates that the controls contained by the HyperLinkField object support callbacks.
public ValidateSupportsCallback ( ) : void
return void