DropDownList Class
Represents a control that allows the user to select a single item from a drop-down list.
Namespace: Microsoft.Web.Mvc.Controls
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Inheritance Hierarchy
System.Object
System.Web.UI.Control
Microsoft.Web.Mvc.Controls.MvcControl
Microsoft.Web.Mvc.Controls.DropDownList
Syntax
public class DropDownList : MvcControl
public ref class DropDownList : MvcControl
type DropDownList =
class
inherit MvcControl
end
Public Class DropDownList
Inherits MvcControl
Constructors
Name | Description | |
---|---|---|
![]() |
DropDownList() | Initializes a new instance of the DropDownList class. |
Properties
Name | Description | |
---|---|---|
![]() |
Adapter | (Inherited from Control.) |
![]() |
AppRelativeTemplateSourceDirectory | (Inherited from Control.) |
![]() |
Attributes | Gets the control attributes.(Inherited from MvcControl.) |
![]() |
ChildControlsCreated | (Inherited from Control.) |
![]() |
ClientID | (Inherited from Control.) |
![]() |
ClientIDMode | (Inherited from Control.) |
![]() |
ClientIDSeparator | (Inherited from Control.) |
![]() |
Context | (Inherited from Control.) |
![]() |
Controls | (Inherited from Control.) |
![]() |
DesignMode | (Inherited from Control.) |
![]() |
EnableTheming | (Inherited from Control.) |
![]() |
EnableViewState | Gets or sets whether to enable the control view state.(Inherited from MvcControl.) |
![]() |
Events | (Inherited from Control.) |
![]() |
HasChildViewState | (Inherited from Control.) |
![]() |
ID | (Inherited from Control.) |
![]() |
IdSeparator | (Inherited from Control.) |
![]() |
IsChildControlStateCleared | (Inherited from Control.) |
![]() |
IsTrackingViewState | (Inherited from Control.) |
![]() |
IsViewStateEnabled | (Inherited from Control.) |
![]() |
LoadViewStateByID | (Inherited from Control.) |
![]() |
Name | Gets or sets the name of the drop down list. |
![]() |
NamingContainer | (Inherited from Control.) |
![]() |
OptionLabel | Gets or sets the default option in the drop down list. |
![]() |
Page | (Inherited from Control.) |
![]() |
Parent | (Inherited from Control.) |
![]() |
RenderingCompatibility | (Inherited from Control.) |
![]() |
Site | (Inherited from Control.) |
![]() |
SkinID | (Inherited from Control.) |
![]() |
TemplateControl | (Inherited from Control.) |
![]() |
TemplateSourceDirectory | (Inherited from Control.) |
![]() |
UniqueID | (Inherited from Control.) |
![]() |
ValidateRequestMode | (Inherited from Control.) |
![]() |
ViewContext | Gets the viewing context of the control.(Inherited from MvcControl.) |
![]() |
ViewData | Gets the data dictionary of the control.(Inherited from MvcControl.) |
![]() |
ViewDataContainer | Gets the data container of the control.(Inherited from MvcControl.) |
![]() |
ViewState | (Inherited from Control.) |
![]() |
ViewStateIgnoresCase | (Inherited from Control.) |
![]() |
ViewStateMode | (Inherited from Control.) |
![]() |
Visible | (Inherited from Control.) |
Methods
Events
Name | Description | |
---|---|---|
![]() |
DataBinding | (Inherited from Control.) |
![]() |
Disposed | (Inherited from Control.) |
![]() |
Init | (Inherited from Control.) |
![]() |
Load | (Inherited from Control.) |
![]() |
PreRender | (Inherited from Control.) |
![]() |
Unload | (Inherited from Control.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() |
IAttributeAccessor.GetAttribute(String) | Retrieves the attribute of the control.(Inherited from MvcControl.) |
![]() ![]() |
IAttributeAccessor.SetAttribute(String, String) | Sets the value of the specified attribute.(Inherited from MvcControl.) |
![]() ![]() |
IControlDesignerAccessor.GetDesignModeState() | (Inherited from Control.) |
![]() ![]() |
IControlDesignerAccessor.SetDesignModeState(IDictionary) | (Inherited from Control.) |
![]() ![]() |
IControlDesignerAccessor.SetOwnerControl(Control) | (Inherited from Control.) |
![]() ![]() |
IParserAccessor.AddParsedSubObject(Object) | (Inherited from Control.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Web.Mvc.Controls Namespace
Return to top