上一页 1 2 3 4 5 6 下一页

  移动.net列表

  移动列表控件支持不同的输入和显示特性。

  从List中选择

  这个页面有两个表单:

<%@ 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>

  第一个表单有一个车的列表。

  第二个页面显示价钱。当在第一个页上选择一个车这个页面就被激活。

  当这个应用程序运行在移动的设备上这两个页面看起来就像下面的:


  移动.NET选择列表

  SelectionList控件支持下拉框,复选框以及单选按钮。

  SelectionList

  这个移动页面使用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>

  当这个页面显示在移动设备上的时候,页面的导航和显示功能将为不同的设备编译不同的显示特性。(译者注:设备不同看到的页面也不同但是功能是一样的)

  有些设备,比如掌上电脑,它可能显示成下拉列表选择表单。在手机上它可能显示为一个选项列表的选择表单。
Posted on 2006-01-10 13:58 艾凡赫 阅读(906) 评论(4)  编辑 收藏 引用 所属分类: Windows Mobile开发

Feedback

# re: VS.NET 2003开发移动Web应用 五  回复  更多评论   

2010-09-12 23:20 by BradfordManuela34
Some time ago, I needed to buy a good house for my organization but I didn't have enough cash and couldn't purchase something. Thank heaven my brother proposed to try to get the <a href="http://bestfinance-blog.com">loan</a> from reliable bank. Thus, I did so and was happy with my car loan.

# re: VS.NET 2003开发移动Web应用 五  回复  更多评论   

2010-09-13 20:24 by do custom paper
You have not to be too shy to get information how to write a term paper. Understand, your future grade depend on your activity!

# re: VS.NET 2003开发移动Web应用 五  回复  更多评论   

2010-09-15 20:10 by buy research paper
Right. I like the feature composed in view of this. A neighbor authorized me about your site, ever since my first visit, I have been hooked. Don't gamble away your life in doubts and concerns, just order original buy research paper. Keep the articles progressing !

# re: VS.NET 2003开发移动Web应用 五  回复  更多评论   

2010-11-09 09:15 by thesis writing
On the long steps to the academic grade people should purchase thesis report corresponding with this post from the thesis service or professional dissertation writing service.

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理