- ホーム
- > 洋書
- > 英文書
- > Science / Mathematics
Full Description
Extend your programming expertise across the widest range of mobile devices with this incisive guide to Microsoft ASP.NET mobile controls. Now integrated into Microsoft Visual Studio .NET 2003, ASP.NET mobile controls enable you to build applications that render intelligently on different devices-regardless of markup language, browser, or form factor. The authors expertly guide you through the mobile Web application development process, explaining how to fully exploit Visual Studio .NET and the Microsoft .NET Framework 1.1 for rapid and more flexible development. Discover how to create innovative, intuitive solutions-instead of wrestling with interoperability issues. Learn how to: Build mobile Web Forms pages with device-independent properties, methods, and events Use "code-behind" techniques to separate programming logic from the UI Employ the standard controls or download new custom controls Build controls from scratch and program device adapters Create styles and style sheets Customize applications for specific devices with templates Access data using Microsoft ADO.NET and the Visual Database Tools Know when to use application vs. session state Apply best practices for using XML Web services in mobile applications Help secure applications with ASP.NET authentication services Develop multilingual and multicultural applications Debug code, trap runtime errors, and use software emulators to test applications Configure, package, and deploy applications
Contents
Acknowledgments xv Introduction xvii 1 Introducing Microsoft ASP.NET for the Mobile Web 1 A Solution for the Wireless Muddle 4 Developing with Mobile Web Forms 5 Abstracting the Mobile Device User Interface 5 Using Mobile Web Forms Controls 6 Working with Mobile Web Forms Using .NET Tools 7 Implementing Code 8 Consuming Events 9 Building Mobile Solutions with Microsoft .NET 9 A Powerful Solution for Mobile Web Application Development 12 2 Getting Started 13 Setting Up Your Development System 13 Creating Your First Mobile Web Applications 16 Creating a Mobile Web Project with Visual Studio .NET 17 Using Solution Explorer and the Properties Dialog Box 19 Building the User Interface with the Toolbox 20 Building and Running Your Application 21 Testing with a Mobile Phone Emulator 22 Setting Up the Openwave Simulator 23 Using the Simulator for Testing 24 Working with the Mobile Internet Designer 26 The Mobile Web Forms Page and Form Control 27 Working with Multiple Form Controls 29 Backward and Forward Navigation in Mobile Web Applications 32 Device-Specific Rendering of Complex Controls 33 Basic Design Principles 35 3 Programming ASP.NET Mobile Web Forms 39 Understanding .aspx Files and Code-Behind Modules 40 The Code-Behind Technique 40 Design and HTML Views 42 The Inline Coding Technique 45 The MobilePage Class 47 Properties of the MobilePage Class 48 Using Events and Event Handlers 49 Programming State Management in ASP.NET 56 Persisting Class Members 58 Building and Testing the Application 61 Accessing .NET Framework Classes 63 Building and Testing the Application 66 Understanding the Application Life Cycle 66 Writing Applications with a Text Editor 68 Building the User Interface 68 Creating the Code-Behind Module 69 Building and Testing the Application 72 4 Programming the Standard Controls 75 How to Use the Control Descriptions 75 Introducing the Controls: Class Hierarchy 76 Common Mobile Controls Behavior 78 Container Controls 83 Containment Rules 84 Form Controls 85 Panel Controls 91 Core Controls 93 Command Controls 94 Image Controls 99 Label Controls 105 Link Controls 108 TextBox Controls 111 TextView Controls 117 5 Special-Purpose Controls and Validation Controls 121 Special-Purpose Controls 122 Calendar Control 122 PhoneCall Control 128 AdRotator Control 131 Validation Controls 136 Common Behavior of the Validation Controls 138 RequiredFieldValidator Control 140 CompareValidator Control 144 RangeValidator Control 148 RegularExpressionValidator Control 152 CustomValidator Control 157 ValidationSummary Control 161 Validation Controls Example 165 6 Programming the List Controls 169 Building Static or Data-Bound Lists 171 The SelectionList Control 175 Syntax 175 Properties and Events 176 Using the SelectionList Control 178 The List Control 186 Syntax 186 Properties and Events 187 Using the List Control 189 The ObjectList Control 196 Syntax 197 Properties and Events 198 Using the ObjectList Control 202 7 Using the Downloadable Controls 219 Using the Custom Controls 219 Adding the Controls to the Toolbox 220 Copying the Control Assembly to Your Application 222 Configuring Your Application to Use Custom Controls 223 The MobileCheckbox Control 224 Configuring Your Application 224 Syntax 225 Properties 226 Using the MobileCheckbox Control 227 The MobileMultiLineInput Control 228 Installation 230 Configuring Your Application 230 Syntax 231 Properties 231 Using the MobileMultiLineInput Control 232 The MobileDynamicImage Control 233 Installation 235 Configuring Your Application 235 Syntax 236 Properties 237 Using the MobileDynamicImage Control 238 8 Programming Styles and Style Sheets 241 Using Mobile Control Style Properties and the StyleSheet Control 241 Using Style Properties 243 Using the StyleSheet Control 248 Pagination and Styles 256 Using Pager Styles in Style Sheets 258 Working with Styles in Visual Studio .NET 259 The Styles Editor 259 Using Cascading Style Sheets (CSS) 260 Managing Cascading Style Sheets 262 Programming your own CSS Style Sheet 262 9 Customizing with Property Overrides and Templates 267 Customization Overview 267 Property Overrides 268 Templates 268 Writing Device Filters 269 Programming