|
|
The drop down lists, check boxes and radio buttons are supported by SelectionList Control
|
|
Selection Lists
|
|
The data feature of the SelectionList control is very similar to the List control. However, the SelectionList control differs in that it is used exclusively to represent selection in a form, and requires another control, such as a Command control, to submit the selection. In addition to single selection, the SelectionList control supports multiple selection, rendering a UI appropriate for the device.
|
|
SelectionList Styles
|
|
Similar to a List control, the SelectionList control offer several rendering style for devices that support these rendering styles. The rendering style, found through the SelectType property, also affect whether or not the control uses single or multiple selection. Valid setting for this property come from the ListSelectType enumeration, and include the following.
|
| Type |
Selection type |
Description |
| DropDown |
Single |
The list is shown as a drop-down list box.
|
| ListBox |
Single
| The list is shown as a list box.
|
| Radio |
Single
| The list is shown as a set of option buttons.
|
| MultiSelectListBox |
Multiple
| The list is shown as a list box.
|
| CheckBox |
Multiple
| The list is shown as a set of check boxes.
|
|
|
The SelectionList Example
|
|
Here we use the SelectionList to let the user select a televisions. This can be viewed as in this mobile page given below:
|
<%@ Page
Inherits=
"System.Web.UI.MobileControls.MobilePage"%>
<%@ Register
TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<script runat="server">
Sub Tele_Click(sender as Object, e as EventArgs)
ActiveForm=f2
t1.text=telev.Selection.Value
End Sub
</script>
<Mobile:Form id="f1" runat="server">
<Mobile:SelectionList runat="server" id="tele" >
<Item Text="Sumsung" Value="$30,000" />
<Item Text="LG" Value="$32,000" />
<Item Text="BPL" Value="$34,000" />
</Mobile:SelectionList>
<Mobile:Command runat="server"
OnClick="Tele_Click" Text="Submit" />
</Mobile:Form>
<Mobile:Form id="f2" runat="server">
<Mobile:Label id="t1" runat="server" />
</Mobile:Form>
|
|
|
When this page is displayed on a mobile device, the navigation and display functions of the page will be compiled differently for different devices with different display characteristics. Fore some devices, like a handheld PC, it might display a dropdown list to choose from. For a cell phone it might display a list of options to select from.
|
Share And Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages.
Keywords:
.NET Mobile Selections,robert kacher selections,book club selections,cell phone mobile,cell phones mobile,mobile phone accessories,mobile ring tones,pay as you go mobile,polaner selections,mobile accessories,samsung mobile,ringtones mobile,chadderdon selections,lg mobile,mobile phones,mobile phone,mobile wireless,gsm mobile,motorola mobile,cellular mobile,mobile ericsson,mobile camera,bluetooth mobile,uk mobile,mobile ringtone,mobile polyphonic,cheap mobile
|
|
| HTML Quizes |
|
|
| XML Quizes |
|
|
| Browser Scripting Quizes |
|
|
| Server Scripting Quizes |
|
|
| .NET (dotnet) Quizes |
|
|
| Multimedia Quizes |
|
|
| Web Building Quizes |
|
|
| Java Quizes |
|
|
| Programming Langauges Quizes |
|
|
| Soft Skills Quizes |
|
|
| Database Quizes |
|
|
| Operating System Quizes |
|
|
| Software Testing Quizes |
|
|
| SAP Module Quizes |
|
|
| Networking Programming Quizes |
|
|
| Microsoft Office Quizes |
|
|
| Accounting Quizes |
|
|
| Computer Basics Quizes |
|
|
|