Explain .NET Mobile SelectionList Control?
Submitted by: AdministratorThe 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>
Submitted by: Administrator
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>
Submitted by: Administrator
Read Online Microsoft .Net Mobile Job Interview Questions And Answers
Top Microsoft .Net Mobile Questions
☺ | Explain .NET Mobile Events? |
☺ | Do you know TextBox and TextView controls of .NET Mobile? |
☺ | What is the difference between .Net Mobile Pages and ordinary .NET web page? |
☺ | Explain a .NET Mobile example with details? |
☺ | What is .Net Mobile Forms? |
Top Dot Net Technologies Categories
☺ | MSF Interview Questions. |
☺ | .Net Architecture Interview Questions. |
☺ | ASP.Net MVC Interview Questions. |
☺ | Entity Framework Interview Questions. |
☺ | C# (Sharp) Programming Language Interview Questions. |