C# Класс Rock.Web.UI.Controls.AttributeEditor

Custom attribute editor control
Наследование: System.Web.UI.WebControls.CompositeControl, IHasValidationGroup
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateFieldTypeDetailControls void
RegisterClientScript void
_ddlFieldType_SelectedIndexChanged void

Открытые методы

Метод Описание
GetAttributeProperties ( Rock attribute ) : void

Gets the attribute properties.

SetAttributeProperties ( Rock attribute, Type objectType = null ) : void

Sets the attribute properties.

Защищенные методы

Метод Описание
CreateChildControls ( ) : void

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.

LoadViewState ( object savedState ) : void

Restores view-state information from a previous request that was saved with the M:System.Web.UI.WebControls.WebControl.SaveViewState method.

OnInit ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Init event.

OnLoad ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.Load event.

OnPreRender ( EventArgs e ) : void

Raises the E:System.Web.UI.Control.PreRender event.

Render ( System.Web.UI.HtmlTextWriter writer ) : void

Writes the T:System.Web.UI.WebControls.CompositeControl content to the specified T:System.Web.UI.HtmlTextWriter object, for display on the client.

SaveViewState ( ) : object

Saves any state that was modified after the M:System.Web.UI.WebControls.Style.TrackViewState method was invoked.

btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnCancel control.

btnSave_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnSave control.

cvKey_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void

Handles the ServerValidate event of the cvKey control.

Приватные методы

Метод Описание
CreateFieldTypeDetailControls ( int fieldTypeId, bool recreate = false ) : void

Creates the field type detail controls.

RegisterClientScript ( ) : void

Registers the client script.

_ddlFieldType_SelectedIndexChanged ( object sender, EventArgs e ) : void

Handles the SelectedIndexChanged event of the _ddlFieldType control.

Описание методов

CreateChildControls() защищенный Метод

Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering.
protected CreateChildControls ( ) : void
Результат void

GetAttributeProperties() публичный Метод

Gets the attribute properties.
public GetAttributeProperties ( Rock attribute ) : void
attribute Rock The attribute.
Результат void

LoadViewState() защищенный Метод

Restores view-state information from a previous request that was saved with the M:System.Web.UI.WebControls.WebControl.SaveViewState method.
protected LoadViewState ( object savedState ) : void
savedState object An object that represents the control state to restore.
Результат void

OnInit() защищенный Метод

Raises the E:System.Web.UI.Control.Init event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

OnLoad() защищенный Метод

Raises the E:System.Web.UI.Control.Load event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs The object that contains the event data.
Результат void

OnPreRender() защищенный Метод

Raises the E:System.Web.UI.Control.PreRender event.
protected OnPreRender ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

Render() защищенный Метод

Writes the T:System.Web.UI.WebControls.CompositeControl content to the specified T:System.Web.UI.HtmlTextWriter object, for display on the client.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter An that represents the output stream to render HTML content on the client.
Результат void

SaveViewState() защищенный Метод

Saves any state that was modified after the M:System.Web.UI.WebControls.Style.TrackViewState method was invoked.
protected SaveViewState ( ) : object
Результат object

SetAttributeProperties() публичный Метод

Sets the attribute properties.
public SetAttributeProperties ( Rock attribute, Type objectType = null ) : void
attribute Rock The attribute.
objectType System.Type Type of the object.
Результат void

btnCancel_Click() защищенный Метод

Handles the Click event of the btnCancel control.
protected btnCancel_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void

btnSave_Click() защищенный Метод

Handles the Click event of the btnSave control.
protected btnSave_Click ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
Результат void

cvKey_ServerValidate() защищенный Метод

Handles the ServerValidate event of the cvKey control.
protected cvKey_ServerValidate ( object source, System.Web.UI.WebControls.ServerValidateEventArgs args ) : void
source object The source of the event.
args System.Web.UI.WebControls.ServerValidateEventArgs The instance containing the event data.
Результат void