What is .NET Mobile Lists. Explain with an example?
Submitted by: AdministratorThere are 2 types of lists:
The selectionlist control supports drop down lists, check boxes and also radio buttons.
The list control supports selection from a list or menu. It has a display and a value property.
Example: Display price of a car selected by user.
<script runat="server">
private void Show_Price(Object sender, ListCommandEventArgs e)
{
text1.Text=e.ListItem.Text + "=" + e.ListItem.Value;
ActiveForm=f2;
}
</script>
<Mobile:Form id="f1" runat="server">
<Mobile:List runat="server" OnItemCommand="Show_PriceList">
<Item text="Camry" value="$25,000" />
<Item text="Audi" value="$32,000" />
<Item text="BMW" value="$54,000" />
</Mobile:List>
</Mobile:Form>
<Mobile:Form id="f2" runat="server">
<Mobile:Label runat="server" id="text1" />
</Mobile:Form>
Submitted by: Administrator
The selectionlist control supports drop down lists, check boxes and also radio buttons.
The list control supports selection from a list or menu. It has a display and a value property.
Example: Display price of a car selected by user.
<script runat="server">
private void Show_Price(Object sender, ListCommandEventArgs e)
{
text1.Text=e.ListItem.Text + "=" + e.ListItem.Value;
ActiveForm=f2;
}
</script>
<Mobile:Form id="f1" runat="server">
<Mobile:List runat="server" OnItemCommand="Show_PriceList">
<Item text="Camry" value="$25,000" />
<Item text="Audi" value="$32,000" />
<Item text="BMW" value="$54,000" />
</Mobile:List>
</Mobile:Form>
<Mobile:Form id="f2" runat="server">
<Mobile:Label runat="server" id="text1" />
</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. |