.NET Mobile SelectionList Control

.NET Mobile SelectionList Control. Explain with an example.

The selectionlist control supports drop down lists, check boxes and also radio buttons.

Example: Allow user to select a car
<%@ Page Inherits= "System.Web.UI.MobileControls.MobilePage"%>

<%@ Register TagPrefix="Mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<script runat="server">
private void Car_Click(Object sender, EventArgs e)
{
    ActiveForm=f2;
    t1.text=cars.Selection.Value;
}
</script>

<Mobile:Form id="f1" runat="server">
<Mobile:SelectionList runat="server" id="cars" >
<Item Text="Camry" Value="$25,000" />
<Item Text="Audi" Value="$32,000" />
<Item Text="BMW" Value="$54,000" />
</Mobile:SelectionList>
<Mobile:Command runat="server" OnClick="Car_Click" Text="Submit" />
</Mobile:Form>

<Mobile:Form id="f2" runat="server">
<Mobile:Label id="t1" runat="server" />
</Mobile:Form>
.NET Mobile images control
Various mobile devices have different displaying capabilities. The Image control enables developers to specify different types of images fir different devices...
.NET Mobile utility controls
.NET Mobile utility controls - NET mobile has a variety of utility complex controls:...
Pros and cons of LINQ (Language-Integrated Query)
Pros and cons of LINQ - Pros of LINQ: Supports type safety, Supports abstraction and hence allows developers to extend features such as multi threading....
Post your comment