Building Microsoft ASP.NET Applications for Mobile Devices, Second Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Building Microsoft ASP.NET Applications for Mobile Devices, Second Edition [Electronic resources] - نسخه متنی

Andy Wigley; Peter Roxburgh

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
توضیحات
افزودن یادداشت جدید






Setting Up Your Development System

To develop ASP.NET mobile Web applications, you'll need access to a computer with the following configuration:



Microsoft Windows XP Professional, Microsoft Windows 2000 Professional, or Microsoft Windows 2000 Server with Service Pack 2 or laterMicrosoft Windows XP is the newest version of the world's most popular operating system. If you're using Windows XP, you'll need to develop on the Professional Edition, which includes Internet Information Services (IIS).



Microsoft Internet Information Services (IIS) 5.0 or laterTo install IIS in Windows 2000, click Start, Settings, and then Control Panel. In Windows XP, click Start, and then Control Panel. Click Add/Remove Programs, and then click the Add/Remove Windows Components button. Select the Internet Information Services (IIS) check box to enable IIS on your system. Complete the IIS install by clicking Next and providing any Windows media requested by the subsequent installation process.



Microsoft .NET FrameworkYou can download the .NET Framework from the MSDN Web site at http://msdn.microsoft.com/netframework/downloads. If you install Visual Studio .NET, the .NET Framework is installed at the same time.



Microsoft Visual Studio .NETStrictly speaking, Visual Studio .NET isn't essential for developing mobile Web applications. You can create mobile Web Forms applications using a text editor and the command-line compilation tools on a computer with the .NET Framework and Mobile Internet Toolkit installed. However, an integrated development environment (IDE) such as Visual Studio .NET is indispensable for efficient development. You can also use the free ASP.NET development IDE, Microsoft ASP.NET Web Matrix, which you can download from http://www.asp.net/webmatrix/. The illustrations in this book show Visual Studio .NET 2003.



Mobile Internet ToolkitIf you've installed .NET Framework version 1.1 or Visual Studio .NET 2003 (which installs .NET Framework 1.1 during the Component Update phase of installation), the ASP.NET mobile controls are already installed. However, if you're working with .NET Framework version 1.0 or Visual Studio .NET 2002, you must download the Mobile Internet Toolkit and device updates from http://www.asp.net/download.aspx.





Note

ASP.NET Mobile Controls is the new name for the Mobile Internet Toolkit. If you're using Visual Studio .NET 2002 for development and deploying to systems with .NET Framework 1.0, you need to install the Mobile Internet Toolkit on both. If you're using Visual Studio .NET 2003 and deploying applications to Web servers with .NET Framework 1.1, you don't need to install anything else, as the ASP.NET mobile controls are a fully integrated part of .NET Framework 1.1.

There's very little difference between ASP.NET Mobile Controls and the Mobile Internet Toolkit. The techniques and descriptions in this book apply to either version, but we'll refer to the product using the new name, ASP.NET Mobile Controls. We'll describe any differences between the two versions where they occur.




If you want, you can develop applications using Visual Studio .NET on your development workstation but locate your applications on a different Web server. In this configuration, your development system must be running Microsoft Windows NT 4 Service Pack 6a, Windows 2000 Service Pack 2, or Windows XP and must have either Visual Studio .NET 2003 or Visual Studio .NET 2002 plus the Mobile Internet Toolkit installed. The Web server must be running Microsoft Windows 2000, Microsoft Windows Server 2003, or Microsoft Windows XP and must be running IIS version 5.0 or later. It must also have either the .NET Framework 1.1 installed or the .NET Framework 1.0 plus the Mobile Internet Toolkit. The easy way to configure a separate Web server is to install Visual Studio .NET, proceed through the Windows Component Update phase, and then clear all options apart from server components prior to the installation of Visual Studio .NET. In addition, you'll need administrative access to the Web server.

By default, Visual Studio .NET expects to create Web projects on a Web server running on the development system, which you can access using URLs that begin with http://localhost. The examples we'll give in this chapter assume this configuration.

The minimum computer specification recommended for Visual Studio .NET 2002 or 2003 development on Windows XP Professional is a Pentium II 450-MHz machine with 160 MB of RAM. However, we recommend at least a Pentium III 733-MHz machine with 256 MB of RAM. Like many IDEs, Visual Studio .NET provides a wealth of information, so for effective development we advise using at least a 17-inch monitor.

In addition, you'll need either some mobile devices or software emulations of them to thoroughly test your applications. Visual Studio .NET integrates Internet Explorer for easy testing of Web applications, which is a useful tool for the early stages of mobile Web application development. The multiple browser support of ASP.NET with the Mobile Internet Toolkit means that Internet Explorer is just as valid a client browser as a Wireless Application Protocol (WAP) browser or Pocket Internet Explorer. However, you'll also need to test your applications on the intended target devices. You'll learn more about mobile device emulators and using them for testing later in this chapter, in the section "Testing with a Mobile Phone Emulator."








Which Version of the .NET Framework and ASP.NET Mobile Controls Should You Use?


At the time of this writing, two versions of the .NET Framework are available: version 1.0, released in February 2002, and version 1.1, released in January 2003. To use the ASP.NET mobile controls with version 1.0, you must download the Mobile Internet Toolkit from the MSDN Web site or from http://www.asp.net. You must install these on your development computer and also on the production Web server where your application is deployed. If you install Visual Studio .NET 2002, you install .NET Framework 1.0 during the Component Update phase of the installation.

The .NET Framework version 1.1 includes the ASP.NET mobile controls as an integral part. You use Visual Studio .NET 2003 to develop applications that use this version of the .NET Framework. Production Web servers must have .NET Framework 1.1 installed on them.

The two versions of the .NET Framework work side by side, so you can run applications developed to use version 1.0 and applications targeting version 1.1 on the same computer. Similarly, you can install Visual Studio .NET 2002 and Visual Studio .NET 2003 on the same development computer.

There is very little difference between the ASP.NET mobile controls included in the Mobile Internet Toolkit for .NET Framework 1.0, and those included in .NET Framework 1.1. The major impact is in deployment. To deploy an ASP.NET mobile controls application developed for version 1.1, only .NET Framework 1.1 needs to be installed on the Web server. If you have developed an application for version 1.0, the Web server must have .NET Framework 1.0 and the Mobile Internet Toolkit installed. If you have the choice, develop applications with .NET Framework 1.1 to simplify application deployment.











/ 145