HtmlSelect Methods
.NET Framework 2.0
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| ApplyStyleSheetSkin | Applies the style properties defined in the page style sheet to the control. (Inherited from Control.) |
| DataBind | Overloaded. Binds a data source to the invoked server control and all its child controls. (Inherited from Control.) |
| Dispose | Enables a server control to perform final clean up before it is released from memory. (Inherited from Control.) |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| FindControl | Overloaded. Searches the current naming container for the specified server control. (Inherited from Control.) |
| Focus | Sets input focus to a control. (Inherited from Control.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| HasControls | Determines if the server control contains any child controls. (Inherited from Control.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| RenderControl | Overloaded. Outputs server control content and stores tracing information about the control if tracing is enabled. (Inherited from Control.) |
| ResolveClientUrl | Gets a URL that can be used by the browser. (Inherited from Control.) |
| ResolveUrl | Converts a URL into one that is usable on the requesting client. (Inherited from Control.) |
| SetRenderMethodDelegate | Assigns an event handler delegate to render the server control and its content into its parent control. (Inherited from Control.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| AddedControl | Called after a child control is added to the Controls collection of the Control object. (Inherited from Control.) |
| AddParsedSubObject | Overridden. Adds a parsed child control to the HtmlSelect control. |
| BuildProfileTree | Gathers information about the server control and delivers it to the Trace property to be displayed when tracing is enabled for the page. (Inherited from Control.) |
| ClearChildControlState | Deletes the control-state information for the server control's child controls. (Inherited from Control.) |
| ClearChildState | Deletes the view-state and control-state information for all the server control's child controls. (Inherited from Control.) |
| ClearChildViewState | Deletes the view-state information for all the server control's child controls. (Inherited from Control.) |
| ClearSelection | Clears the list selection of the HtmlSelect control and sets the ListItem.Selected property of all items to false. |
| 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. (Inherited from Control.) |
| CreateControlCollection | Overridden. Creates an EmptyControlCollection object for the HtmlSelect control. |
| DataBind | Overloaded. Binds a data source to the invoked server control and all its child controls. (Inherited from Control.) |
| DataBindChildren | Binds a data source to the server control's child controls. (Inherited from Control.) |
| EnsureChildControls | Determines whether the server control contains child controls. If it does not, it creates child controls. (Inherited from Control.) |
| EnsureDataBound | Verifies that the HtmlSelect control requires data binding and that a valid data source control is specified before calling the DataBind method. |
| EnsureID | Creates an identifier for controls that do not have an identifier assigned. (Inherited from Control.) |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| FindControl | Overloaded. Searches the current naming container for the specified server control. (Inherited from Control.) |
| GetAttribute | Gets the value of the named attribute on the HtmlControl control. (Inherited from HtmlControl.) |
| GetData | Gets an IEnumerable object that represents the data source that is bound to the HtmlSelect control. |
| GetDesignModeState | Gets design-time data for a control. (Inherited from Control.) |
| HasEvents | Returns a value indicating whether events are registered for the control or any child controls. (Inherited from Control.) |
| IsLiteralContent | Determines if the server control holds only literal content. (Inherited from Control.) |
| LoadControlState | Restores control-state information from a previous page request that was saved by the SaveControlState method. (Inherited from Control.) |
| LoadPostData | Processes the postback data for the HtmlSelect control. |
| LoadViewState | Overridden. Restores the HtmlSelect control's view state information from a previous page request that was saved by the SaveViewState method. |
| MapPathSecure | Retrieves the physical path that a virtual path, either absolute or relative, maps to. (Inherited from Control.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
| OnBubbleEvent | Determines whether the event for the server control is passed up the page's UI server control hierarchy. (Inherited from Control.) |
| OnDataBinding | Overridden. Raises the DataBinding event of an HtmlSelect control. |
| OnDataPropertyChanged | Invoked when the DataSource, DataMember, or DataSourceID property is changed. |
| OnDataSourceViewChanged | Invoked when the DataSource, DataMember, or DataSourceID property is changed. |
| OnInit | Overridden. Raises the Init event for the HtmlSelect control. |
| OnLoad | Overridden. Raises the Load event for the HtmlSelect control. |
| OnPreRender | Overridden. Raises the PreRender event for the HtmlSelect control. |
| OnServerChange | Raises the ServerChange event of the HtmlSelect control. This allows you to provide a custom handler for the event. |
| OnUnload | Raises the Unload event. (Inherited from Control.) |
| OpenFile | Gets a Stream used to read a file. (Inherited from Control.) |
| RaiseBubbleEvent | Assigns any sources of the event and its information to the control's parent. (Inherited from Control.) |
| RaisePostDataChangedEvent | Calls the OnServerChange method to signal the HtmlSelect control that the state of the control has changed. |
| RemovedControl | Called after a child control is removed from the Controls collection of the Control object. (Inherited from Control.) |
| Render | Renders the HtmlContainerControl control to the specified HtmlTextWriter object. (Inherited from HtmlContainerControl.) |
| RenderAttributes | Overridden. Renders the HtmlSelect control's attributes to the specified HtmlTextWriter object. |
| RenderBeginTag | Renders the opening HTML tag of the control into the specified HtmlTextWriter object. (Inherited from HtmlControl.) |
| RenderChildren | Overridden. Renders the HtmlSelect control's child controls to the specified HtmlTextWriter object. |
| RenderControl | Overloaded. Outputs server control content and stores tracing information about the control if tracing is enabled. (Inherited from Control.) |
| RenderEndTag | Renders the closing tag for the HtmlContainerControl control to the specified HtmlTextWriter object. (Inherited from HtmlContainerControl.) |
| ResolveAdapter | Gets the control adapter responsible for rendering the specified control. (Inherited from Control.) |
| SaveControlState | Saves any server control state changes that have occurred since the time the page was posted back to the server. (Inherited from Control.) |
| SaveViewState | Overridden. Saves any HtmlSelect control view state changes that have occurred since the page was posted back to the server. |
| Select | Selects multiple items of the HtmlSelect control's Items collection. |
| SetAttribute | Sets the value of the named attribute on the HtmlControl control. (Inherited from HtmlControl.) |
| SetDesignModeState | Sets design-time data for a control. (Inherited from Control.) |
| TrackViewState | Overridden. Tracks view state changes to the HtmlSelect control so the changes can be stored in the control's StateBag object. This object is accessible through the Control.ViewState property. |
| Name | Description | |
|---|---|---|
| System.Web.UI.IPostBackDataHandler.LoadPostData | For a description of this member, see IPostBackDataHandler.LoadPostData. |
| System.Web.UI.IPostBackDataHandler.RaisePostDataChangedEvent | For a description of this member, see IPostBackDataHandler.RaisePostDataChangedEvent. |
Reference
HtmlSelect ClassSystem.Web.UI.HtmlControls Namespace
Size
Multiple
SelectedIndex
Items
System.Web.UI.WebControls.ListItem
System.Web.UI.WebControls.ListItemCollection
DataSource
DataSourceID
DataMember
System.Data.DataSet
DataTextField
ListItem.Text
DataValueField
ListItem.Value
InnerHtml
InnerText
Other Resources
HTML Server ControlsCommunity Additions
ADD
Show: