Background
背景
Cell phones (mobile telephones) have become part of our life style, and new mobile devices like the Palm Pilot, the Pocket PC, and the Auto PC is about to be added to the list.
手机(Mobile电话)已经成为我们生活的一部分,而新的Mobile部件像Palm Pilot,Pocket PC(口袋电脑),和 Auto PC也即将加入到这个名单之中,成为我们生活的一部分。
One exciting thing about these new mobile devices is their ability to connect to the Internet and to execute web applications.
这些新Mobile部件有令人兴奋的一点,就是它们能够连接到英特网并且能执行网页应用程序。
Mobile applications can now be developed to deliver any types of data, to any user, any place in the world!
Mobile应用目前可以发展到能够传输任意类型的数据到世界的任何用户,任何地方。
Different mobile devices support different programming languages. Some support WAP and WML, some support HTML or a limited version of HTML, and some support both or a different language.
不同的Mobile部件支持不同的程序设计语言。有些支持WAP和WML,有些支持HTML或HTML的有限版,有些这两种都支持,有些支持别的语言。
To support all types of mobile devices, developers must create one different application for each language.
为了支持所有类型的Mobile部件,开发者必须为每种语言创造出不同的应用程序。
With .NET Mobile, Microsoft has introduced a new platform for developing mobile applications.
Microsoft为Mobile应用程序的开发提供了一个新的平台——.NET Mobile
This tutorial is about how to develop mobile applications with an extension to the .NET Framework, called the Microsoft Mobile Internet Toolkit (MMIT) or simply .NET Mobile.
这篇教程教我们怎样用被称为Microsoft Mobile Internet Toolkit (MMIT)(或简称为.NET Mobile. )的.NET Framework的扩展来开发Mobile应用程序。
What You Should Already Know
你所应已知道的
Before you continue you should have a basic understanding of the following:
在继续下面的学习之前,你该对以下内容有基本了解。
- HTML / XHTML
- Namespaces
- ASP .NET
If you want to study these subjects first, find the tutorials on our Home page.
如果想先学这些,请看我们主页上的教程。
.NET Mobile
.NET Mobile is an extension to Microsoft ASP.NET and the Microsoft's .NET Framework.
.NET Mobile 是Microsoft ASP.NET 和Microsoft's .NET Framework.的扩充和延伸。
.NET Mobile is a set of server-side Web Forms Controls to build applications for wireless mobile devices, like web phones and PDAs.
.NET Mobile是一组服务器方的网页窗口控件,用于为像手机和PDA这样的Mobile部件建立应用程序。
These controls produce different output for different devices by generating WML 1.1, HTML 3.2, or compact HTML.
这些控件通过生成WML 1.1, HTML 3.2, 或更为简洁的HTML为不同的部件输出不同的结果。
How Does It Work?
.NET Mobile是怎样作用的?
The following table shows how the .NET Mobile works:
下面的表格反映了.NET Mobile是怎样作用的:
| Mobile Devices部件 |
| The Internet英特网 |
Internet Information Services -IIS 网络信息服务器
|
| The .NET Framework |
| ASP.NET |
| .NET Mobile |
- A web client requests a web page
网页客户端向网页发出请求
- The request travels the Internet
请求在英特网上传送
- The request is received by IIS
请求被IIS接受
- The request is handled by the .NET framework
请求被the .NET framework处理
- The requested page is compiled by ASP.NET
请求页面由ASP.NET编辑
- .NET Mobile handles any mobile device requirements
.NET Mobile处理任何Mobile部件的要求
- The page is returned to the client
页面返回给用户端
Software Requirements
软件要求
To develop mobile applications with .NET Mobile, you must have the following components:
为了使用.NET Mobile可法Mobile应用程序,你必须得有以下组件:
- Windows 2000 Professional/Server with IIS 5
有IIS 5的Windows 2000 Professional/Server
- All Windows 2000 service packs
所有Windows 2000 服务包(server packs)
- The ASP.NET framework
ASP.NET框架
- Microsoft Mobile Internet Toolkit (MMIT)
微软移动网络工具(MMIT)
- Internet Explorer 6.0 or 5.5
IE6.0或5.5浏览器
- A WAP simulator
一个WAP模拟器
You will need Windows 2000 to develop .NET applications. IIS 5 (Internet Information Services) is a part of Windows 2000.
你会需要Windows 2000。NET applications. IIS 5(英特网信息服务)是Windows 2000.的一部分。
If you want to read more about how to install .NET go to our ASP.NET tutorial.
如果你想知道更多关于如何安装.NET,请访问我们的ASP.NET 教程.
You also have to install MMIT (.NET Mobile) and Internet Explorer 5.5 or 6.0
你也必须安装MMIT (.NET Mobile) 和 Internet Explorer 5.5
Internet Explorer and MMIT can be downloaded from Microsoft MSDN.
Internet Explorer和 MMIT可以从Microsoft MSDN下载
How To Start
怎样开始
Developing a mobile web application with ASP.NET is very easy:
用ASP.NET开发一项网页应用程序非常简单:
- Create an ASP.NET page
创建一个ASP.NET页面
- Include System.Mobile.UI
放进System.Mobile.UI来
- Add Mobile Controls to the page
放进System.Mobile.UI来
See the details in the next chapters.
请看下几章的详细内容