C# Class 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
Inheritance: System.Web.UI.WebControls.DropDownList
Afficher le fichier Open project: netTiers/netTiers Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
EntityDropDownList ( ) : System

Initializes a new instance of the T:EntityDropDownList class.

Validate ( ) : void

Calls the validate method on the embedded required validator if permitted

Méthodes protégées

Méthode Description
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.

Method Details

CreateChildControls() protected méthode

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
Résultat void

CreateControlCollection() protected méthode

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
Résultat System.Web.UI.ControlCollection

EntityDropDownList() public méthode

Initializes a new instance of the T:EntityDropDownList class.
public EntityDropDownList ( ) : System
Résultat System

OnDataBinding() protected méthode

Raises the event.
protected OnDataBinding ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Résultat void

OnInit() protected méthode

Raises the event.
protected OnInit ( EventArgs e ) : void
e System.EventArgs An object that contains the event data.
Résultat void

OnLoad() protected méthode

Handles the event.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs An object that contains event data.
Résultat void

Render() protected méthode

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.
Résultat void

RenderDropDownList() protected méthode

Renders the drop down list.
protected RenderDropDownList ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Résultat void

RenderRequiredValidator() protected méthode

Renders the required validator.
protected RenderRequiredValidator ( System.Web.UI.HtmlTextWriter writer ) : void
writer System.Web.UI.HtmlTextWriter The writer.
Résultat void

Validate() public méthode

Calls the validate method on the embedded required validator if permitted
public Validate ( ) : void
Résultat void