–
286 KB – 1072 Pages
PAGE – 2 ============
Exam 70-562: TS: Microsoft .NET Framework 3.5, ASP.NET Application Development OBJECTIVE CHAPTER LESS ONCO NFIGURING AND DEP LO YING WEB APP LICATI ONS (10 PERCENT) Con˜gure providers. 141,2 Con˜gure authentication, authorization, and impersonation. 143Con˜gure projects, solutions, and reference assemblies. 13Con˜gure session state by using Microsoft SQL Server, State Server, or InProc. 42Publish Web applications. 161Con˜gure application pools. 161Compile an application by using Visual Studio or command-line tools. 161,2 CO NSUMING AND CREATING SERVER CO NTR OL S (20 PERCENT) Implement data-bound controls. 82Load user controls dynamically. 101Create and consume custom controls. 102Implement client-side validation and server-side validation. 31Consume standard controls. 21,2 WORKING WITH DATA AND SERVICES (17 PERCENT) Read and write XML data. 73Manipulate data by using DataSet and DataReader objects. 71,2 Call a Windows Communication Foundation (WCF) service or a Web service from an ASP.NET Web page. 92Implement a DataSource control. 81Bind controls to data by using data binding syntax. 81,2 TROUB LESH OO TING AND DEBUGGING WEB APP LICATI ONS (16 PERCENT) Con˜gure debugging and custom errors. 121Set up an environment to perform remote debugging. 121,2 Debug unhandled exceptions when using ASP.NET AJAX. 121Implement tracing of a Web application. 122Debug deployment issues. 121,2 Monitor Web applications. 122WORKING WITH ASP .NET AJA X AND CL IENT- SIDE SCRIPTING (15 PERCENT) Implement Web Forms by using ASP.NET AJAX. 61Interact with the ASP.NET AJAX client-side library. 62Consume services from client scripts. 91,2 Create and register client script. 62TARGETING MO BI LE DEVICES (5 PERCENT) Access device capabilities. 151Control device-speci˜c rendering. 151
PAGE – 3 ============
Add mobile Web controls to a Web page. 151Implement control adapters. 151PROGRAMMING WEB APP LICATI ONS (17 PERCENT) Customize the layout and appearance of a Web page. 51,2,3 Work with ASP.NET intrinsic objects. 112Implement globalization and accessibility. 131,2 Implement business objects and utility classes. 12,3 Implement session state, view state, control state, cookies, cache, or application state. 2,4 Chapter 2: Lesson 1 Chapter 4: Lesson 1 Handle events and control page ˚ow. 2,3 Chapter 2: Lessons 1 and 3; Chapter 3: Lessons 1 and 2 Implement the Generic Handler. 111Exam Objectives The exam objectives listed here are current as of this book™s publication date. Exam objectives are subject to change at any time without prior notice and at Microsoft™s sole discretion. Please visit the Microsoft Learning Web site for the most current listing of exam objectives: http://www.microsoft.com/learning/en/us/exams /70-562.mspx.
PAGE – 4 ============
PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2009 by Glenn Johnson, GrandMasters, and Microsoft Corporation All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number: 2009920804 Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWT 4 3 2 1 0 9 Distributed in Canada by H.B. Fenn and Company Ltd. A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further infor-mation about international editions, contact your local Microsoft Corporation of˜ce or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress . Send comments to tkinput@microsoft.com. Microsoft, Microsoft Press, Active Directory, ActiveX, Excel, IntelliSense, Internet Explorer, MS, MSDN, SharePoint, Silverlight, SQL Server, Visual Basic, Visual SourceSafe, Visual Studio, Win32, Windows, Windows Mobile, Windows NT, Windows Server, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Openwave and the Openwave logo are trademarks of Openwave Systems Inc. All rights reserved. Other product and company names mentioned herein may be the trademarks of their respective owners. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are ˜ctitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. This book expresses the author™s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions Editor: Ken Jones Developmental Editor: Laura Sackerman Project Editor: Maureen Zimmerman Editorial Production: nSight, Inc. Technical Reviewer: Kurt Meyer; Technical Review services provided by Content Master, a member of CM Group, Ltd. Cover: Tom Draper Design Body Part No. X15-45849
PAGE – 5 ============
DedicationFor my mom, Tonya Snell. ŠMIKE SNELL AcknowledgmentsI would ˜rst like to thank the authors of the ˜rst edition of this book: Glenn Johnson and Tony Northrup. It has been a pleasure building on the foundation that you laid. I would also like to thank the hard-working people at Microsoft Press, including Ken Jones for getting me involved in another great project and Maureen Zimmerman for her guidance on this work. Many thanks to Chris Norton and his team at nSight ( www.nsightworks.com ) for keeping the book on schedule. This includes Teresa Horton for her great editing work. Thanks also to Richard Kobylka and the team at GrandMasters ( www.grandmasters.biz ) for their help shepherding this book through the process. Also, thanks go to my technical editor, Kurt Meyer. Thanks for working through the labs, getting the CD right, and challenging various technical anomalies. Thanks to Kristy Saunders for her wonderful work on the sample questions for the CD. Finally, I would like to thank my wife, Carrie, and my children, Allie and Ben. Thanks for your patience and understanding during this process. ŠMIKE SNELL
PAGE – 8 ============
viContents Lesson 2: Creating a Web Site and Adding New Web Pages .. 16Creating Web Sites 16Creating ASPX Pages 24Web Site Compilation 28Lesson Summary 30Lesson Review 31Lesson 3: Working with Web Con˜guration Files 33Understanding the Con˜guration File Hierarchy 33Processing the Con˜guration Files 34Editing Con˜guration Files 35Lesson Summary 37Lesson Review 38Chapter Review .. 39Chapter Summary 39Case Scenarios 39Suggested Practices . 40Create a New Web Site Using Visual Studio 2008 40Add a Web Page to the Web Site 40Program a Web Application 40Con˜gure Settings for a Web Application 41Take a Practice Test .. 41Chapter 2 Adding and Con˜guring Server Controls 43Before You Begin . 44 Lesson 1: Understanding and Using Server Controls 45Understanding the Life Cycle of an ASP.NET Web Page and Its Controls 46HTML vs. Web Server Controls 52HTML Server Controls 53Web Server Controls 58Lesson Summary 71
PAGE – 9 ============
vii Contents Lesson Review 71Lesson 2: Exploring Common Server Controls 73The Label Control 74The TextBox Control 75The Button Control 76The CheckBox Control 78The RadioButton Control 78Lesson Summary 82Lesson Review 82Lesson 3: Exploring Specialized Server Controls . 84The Literal Control 84The Table , TableRow , and TableCell Controls 87The Image Control 91The ImageButton Control 94The ImageMap Control 96The Calendar Control 101The FileUpload Control 108The Panel Control 111The MultiView and View Controls 114The Wizard Control 118The Xml Control 123Lesson Summary 135Lesson Review 136Chapter Review . 138Chapter Summary 138Case Scenarios 138Suggested Practices 139Create a New Web Page Using Server Controls 140Create Event Handlers for Pages and Controls 140Program a Web Application 140Take a Practice Test . 140
PAGE – 10 ============
viii Contents Chapter 3 Input Validation and Site Navigation 14 1Before You Begin 142 Lesson 1: Performing Input Validation .. 143Understanding the Validation Framework 143Understanding the BaseCompareValidator Class 147Understanding the RequiredFieldValidator Control 148Using the CompareValidator Control 149Using the RangeValidator Control 150Using the RegularExpressionValidator Control 151The CustomValidator Control 152Lesson Summary 16 3Lesson Review 16 3Lesson 2: Performing Site Navigation 16 5Is Page Navigation Necessary? 16 5Choosing a Method to Navigate Pages 16 6Client-Side Navigation 16 6Cross-Page Posting 16 7Client-Side Browser Redirect 16 9Server-Side Transfer 170Using the Site Map Web Server Control 171Lesson Summary 178Lesson Review 179Chapter Review . 180Chapter Summary 180Case Scenarios 180Suggested Practices 181Create a Web Site and Program Redirection 181Create a Data Collection Page with Validation 181Implement the HyperLink Web Server Control 181Take a Practice Test . 182
PAGE – 11 ============
ixContents Chapter 4 ASP .NET State Management 18 3Before You Begin 184 Lesson 1: Using Client-Side State Management 185Choosing Client-Side or Server-Side State Management 186View State 187Hidden Fields 192Cookies 192Query Strings 197Lesson Summary 205Lesson Review 206Lesson 2: Using Server-Side State Management 208Application State 208Session State 213Pro˜le Properties 218Lesson Summary 222Lesson Review 223Chapter Review . 225Chapter Summary 225Case Scenarios 225Suggested Practices 227Manage State by Using Client-Based State Management Options 227Manage State by Using Server-Based State Management Options 227Maintain State by Using Database Technology 227Respond to Application and Session Events 228Take a Practice Test . 228Chapter 5 Customizing and Personalizing a Web Application 22 9Before You Begin 230 Lesson 1: Using Master Pages . 231
286 KB – 1072 Pages