C# Класс Nettiers.AdventureWorks.Web.UI.EntityDropDownList

A specialised Drop Down List that adds extra functionality to the base class. Features include the ability to add a null item, make the control readonly, make the control required and it supports type ahead
Наследование: System.Web.UI.WebControls.DropDownList
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

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

Метод Описание
EntityDropDownList ( ) : System

Initializes a new instance of the T:EntityDropDownList class.

Validate ( ) : void

Calls the validate method on the embedded required validator if permitted

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

Метод Описание
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.

CreateControlCollection ( ) : System.Web.UI.ControlCollection

The base DropDownList class doesn't allow a child control collection. We'll override it so that we can have one for the validator.

OnDataBinding ( EventArgs e ) : void

Raises the event.

OnInit ( EventArgs e ) : void

Raises the event.

OnLoad ( EventArgs e ) : void

Handles the event.

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

Renders the control to the specified HTML writer.

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

Renders the drop down list.

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

Renders the required validator.

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

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

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

The base DropDownList class doesn't allow a child control collection. We'll override it so that we can have one for the validator.
protected CreateControlCollection ( ) : System.Web.UI.ControlCollection
Результат System.Web.UI.ControlCollection

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

Initializes a new instance of the T:EntityDropDownList class.
public EntityDropDownList ( ) : System
Результат System

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

Raises the event.
protected OnDataBinding ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Результат void

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

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

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

Handles the event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs An object that contains event data.
Результат void

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

Renders the control to the specified HTML writer.
protected Render ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The object that receives the control content.
Результат void

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

Renders the drop down list.
protected RenderDropDownList ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

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

Renders the required validator.
protected RenderRequiredValidator ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Результат void

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

Calls the validate method on the embedded required validator if permitted
public Validate ( ) : void
Результат void