This documentation is archived and is not being maintained.

SelectionList::SelectType Property

Gets or sets the type of UI used to provide a selection UI. Must be of type ListSelectType. The default value is DropDown.

Namespace:  System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

[BindableAttribute(true)]
public:
property ListSelectType SelectType {
	ListSelectType get ();
	void set (ListSelectType value);
}
<asp:SelectionList SelectType="ListSelectType" />

Property Value

Type: System.Web.UI.MobileControls::ListSelectType
Type of UI used to provide a selection UI.

A SelectionList object can be rendered as a CheckBox, DropDown, ListBox, MultiSelectListBox, or Radio list, depending on the target device. The selection type also affects whether the control allows the user to select multiple items. The MultiSelectListBox and CheckBox settings allow multiple selections; other settings allow only a single selection. The selection types are shown in the following table.

ListSelectType value

Description

Multiselect

CheckBox

Renders list items with check boxes and multiple selection capability.

Yes

DropDown

Renders list items in a drop-down list box.

No

ListBox

Renders list items in a list box.

No

MultipleSelectionListBox

Renders list items in a list box with multiple selection capability.

Yes

Radio

Renders list items as options.

No

The following code example shows how to use the SelectedIndexChanged event. It also shows how to use the Rows property on postback to expand the list.

NoteNote:

The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information, see ASP.NET Web Page Syntax Overview.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1
Show: