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:36:18

The SelectionList Control supports drop down lists, check boxes and radio buttons.
SelectionList(选择列表)控件支持下拉列表、检查框和单选按钮。


The SelectionList
SelectionList(选择列表)

This mobile page uses a SelectionList to let the user select a car:
这个Mobile页面使用SelectionList(选择列表)控件让用户选择一辆车:

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

<script runat="server">
Sub Car_Click(sender as Object, e as EventArgs)
  ActiveForm=f2
  t1.text=cars.Selection.Value
End Sub
</script>

<Mobile:Form id="f1" runat="server">
<Mobile:SelectionList runat="server" id="cars" >
  <Item Text="Volvo" Value="$30,000" />
  <Item Text="BMW" Value="$32,000" />
  <Item Text="Audi" Value="$34,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>
 

When this page is displayed on a mobile device, the navigation and display functions of the page will be compiled differently for different devices with different display characteristics.
当这页显示在Mobile部件上时,对于具有不同显示特性的不同部件,这页的导向和显示函数会被编译得不同。

Fore some devices, like a handheld PC, it might display a dropdown list to choose from. For a cell phone it might display a list of options to select from.
一些部件,像掌上PC上也许显示的是可以进行选择的下拉列表。像手机上也许显示的是可供选择的一系列选项。

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

用户名: 查看更多评论

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

内 容:

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