Name
DropDownList
Synopsis
This class provides a single-selection drop-down list control. Various properties,
such as BorderColor, BorderStyle, and BorderWidth, allow you to
configure its appearance. To add items programmatically, use the Items collection or use
the DataBind() method to bind to a data
source (such as a System.Data.DataTable or a System.Array).
Use the SelectedIndex property to
determine the selected item or the SelectedItem property, which returns a ListItem object that specifies the
associated text.
Public Class DropDownList : Inherits ListControl : Implements_ System.Web.UI.IPostBackDataHandler ' Public Constructors Public Sub New() ' Public Instance Properties Overrides Public Property BorderColor As Color Overrides Public Property BorderStyle As BorderStyle Overrides Public Property BorderWidth As Unit Overrides Public Property SelectedIndex As Integer Overrides Public Property ToolTip As String ' Protected Instance Methods Overrides Protected Sub AddAttributesToRender( ByVal writer As System.Web.UI.HtmlTextWriter) Overrides Protected Function CreateControlCollection( ) As ControlCollection Overrides Protected Sub RenderContents( ByVal writer As System.Web.UI.HtmlTextWriter) End Class
Hierarchy
System.Object→ System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)→WebControl(System.Web.UI.IAttributeAccessor)→ListControl→ DropDownList(System.Web.UI.IPostBackDataHandler)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access