.NET Mobile列表[转]
The Mobile List Control supports different input and display properties.
Mobile List Control(Mobile列表控件)支持不同的输入和显示属性。
Selecting from a List
从列表中选择
This page has two forms:
这页中有两个窗口
<%@ Page
Inherits=
"System.Web.UI.MobileControls.MobilePage"%>
<%@ Register
TagPrefix="Mobile"
Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<script runat="server"> Sub Show_Price(sender As Object,e As ListCommandEventArgs)
text1.Text=e.ListItem.Text & "=" & e.ListItem.Value
ActiveForm=f2
End Sub
</script>
<Mobile:Form id="f1" runat="server">
<Mobile:List runat="server"
OnItemCommand="Show_Price">
<Item text="Volvo" value="$30,000" />
<Item text="BMW" value="$32,000" />
<Item text="Audi" value="$34,000" />
</Mobile:List>
</Mobile:Form>
<Mobile:Form id="f2" runat="server">
<Mobile:Label runat="server" id="text1" />
</Mobile:Form>
|
The first form has a list of cars.
第一个窗口有关于车的列表
The second page displays a price. This page is activated when a car is selected on the first page.
第二页显示了一个价格。当第一页上有辆车被选时,第二页会被激活
When the application runs on a mobile device the two pages will display like this:
当程序在Mobile部件运行时,这两页会这样显示:
Form 1 窗口1
| Volvo BMW Audi |
Form 2 窗口2
| Volvo=$30,000 |
浙公网安备 33010602011771号