WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章WAP教程网站教程.NET Mobile列表

.NET Mobile列表
作者:佚名  来源:本站整理  发布时间:2008-3-14 20:35:49

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






 

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码