Windows Mobile asp.net第一個程序
来源:互联网 发布:unity3d物体沿轴运动 编辑:程序博客网 时间:2024/06/05 22:56
<%...@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%...@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="ListStuff" runat="server" BackColor="White" ForeColor="#bb7023">
<mobile:Label ID="Label1" Runat="server">Pick a Language!</mobile:Label>
<mobile:List ID="ListMe" Runat="server" OnItemCommand="ListMe_ItemCommand">
<Item Text="English" Value="English" />
<Item Text="Chinese" Value="Chinese" />
<Item Text="French" Value="French" />
<Item Text="German" Value="German" />
<Item Text="Italian" Value="Italian" />
<Item Text="Norwegian" Value="Norwegian" />
<Item Text="Protuguese" Value="Protuguese" />
</mobile:List>
</mobile:Form>
<mobile:Form ID="SecondForm" Runat="server" BackColor="White" ForeColor="Green">
<mobile:Label ID="Label2" Runat="server">Your "Hello World" Translation</mobile:Label>
<mobile:Label ID="Selection" Runat="server">
</mobile:Label>
<mobile:Link ID="GoBack" Runat="server" NavigateUrl="#ListStuff">back</mobile:Link>
</mobile:Form>
</body>
</html>
<%...@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<body>
<mobile:Form id="ListStuff" runat="server" BackColor="White" ForeColor="#bb7023">
<mobile:Label ID="Label1" Runat="server">Pick a Language!</mobile:Label>
<mobile:List ID="ListMe" Runat="server" OnItemCommand="ListMe_ItemCommand">
<Item Text="English" Value="English" />
<Item Text="Chinese" Value="Chinese" />
<Item Text="French" Value="French" />
<Item Text="German" Value="German" />
<Item Text="Italian" Value="Italian" />
<Item Text="Norwegian" Value="Norwegian" />
<Item Text="Protuguese" Value="Protuguese" />
</mobile:List>
</mobile:Form>
<mobile:Form ID="SecondForm" Runat="server" BackColor="White" ForeColor="Green">
<mobile:Label ID="Label2" Runat="server">Your "Hello World" Translation</mobile:Label>
<mobile:Label ID="Selection" Runat="server">
</mobile:Label>
<mobile:Link ID="GoBack" Runat="server" NavigateUrl="#ListStuff">back</mobile:Link>
</mobile:Form>
</body>
</html>
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Mobile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.MobileControls.MobilePage
...{
protected void Page_Load(object sender, EventArgs e)
...{
}
protected void ListMe_ItemCommand(object sender, ListCommandEventArgs e)
...{
Selection.Text = "Your selected " + e.ListItem.Text;
ActiveForm = SecondForm;
switch (e.ListItem.Text)
...{
case "Chinese":
Selection.Text = "世界你好";
break;
case "French":
Selection.Text = "Bonjour le monde";
break;
case "German":
Selection.Text = "Hallo Welt";
break;
case "Italian":
Selection.Text = "Ciao il mondo";
break;
case "Norwegian":
Selection.Text = "Hei verden";
break;
case "Portuguese":
Selection.Text = "Oi mundo";
break;
default:
Selection.Text = "Hello World";
break;
}
}
}
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Mobile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.MobileControls;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
public partial class Default2 : System.Web.UI.MobileControls.MobilePage
...{
protected void Page_Load(object sender, EventArgs e)
...{
}
protected void ListMe_ItemCommand(object sender, ListCommandEventArgs e)
...{
Selection.Text = "Your selected " + e.ListItem.Text;
ActiveForm = SecondForm;
switch (e.ListItem.Text)
...{
case "Chinese":
Selection.Text = "世界你好";
break;
case "French":
Selection.Text = "Bonjour le monde";
break;
case "German":
Selection.Text = "Hallo Welt";
break;
case "Italian":
Selection.Text = "Ciao il mondo";
break;
case "Norwegian":
Selection.Text = "Hei verden";
break;
case "Portuguese":
Selection.Text = "Oi mundo";
break;
default:
Selection.Text = "Hello World";
break;
}
}
}
- Windows Mobile asp.net第一個程序
- 编写第一个Windows Mobile程序
- Windows Mobile 调用 摄像头 接口 asp.net
- 第一个Asp.Net程序
- 第一个asp.net程序
- 我的第一个asp.net程序
- 第一个 IronPython 的 ASP.NET 程序
- ASP.NET移动控件编程和Windows Mobile编程
- ASP.NET循序渐进--2、第一个ASP.NET网页程序
- Windows mobile VB.net 中 程序终止的代码
- Windows Mobile 5.0 (4) -- Mobile程序部署
- 自定义asp.net mobile control
- ASP.NET MOBILE开发体会
- 今天写了第一个ASP.NET程序
- 我的第一个ASP.NET程序——HelloWorld
- 我的第一个ASP.NET的程序的感受
- Asp.net的第一个一般处理程序
- 我的第一个ASP.NET MVC程序
- 内容发布系统的开发
- IT生活
- 上下左右无空隙不间断图片连续滚动代码
- [摘]直接在ECLIPSE中JETTY调试方式
- 写给想当程序员的朋友—一个还不太老的普通程序员的体会
- Windows Mobile asp.net第一個程序
- asp.net(c#)文件生成HTML文件
- 怎样评估ERP成本?
- C#中委托和事件
- JDBC连接数据库
- 顶部自动消失图片
- 程序员的酸甜苦辣—写在即将告别coding的时刻
- ARM汇编指令的一些总结
- 交叉表的问题