1. Trang chủ
  2. » Công Nghệ Thông Tin

Microsoft .NET Framework 3.5 - ASP.NET Application Development

1,1K 498 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.072
Dung lượng 11,68 MB

Nội dung

Training Kit Asp.Net của Microsoft

Exam 70-562: TS: Microsoft .NET Framework 3.5, ASP.NET Application Development OBJECTIVE CHAPTER LESSON CONFIGURING AND DEPLOYING WEB APPLICATIONS (10 PERCENT) Configure providers. 14 1,2 Configure authentication, authorization, and impersonation. 14 3 Configure projects, solutions, and reference assemblies. 1 3 Configure session state by using Microsoft SQL Server, State Server, or InProc. 4 2 Publish Web applications. 16 1 Configure application pools. 16 1 Compile an application by using Visual Studio or command-line tools. 16 1,2 CONSUMING AND CREATING SERVER CONTROLS (20 PERCENT) Implement data-bound controls. 8 2 Load user controls dynamically. 10 1 Create and consume custom controls. 10 2 Implement client-side validation and server-side validation. 3 1 Consume standard controls. 2 1,2 WORKING WITH DATA AND SERVICES (17 PERCENT) Read and write XML data. 7 3 Manipulate data by using DataSet and DataReader objects. 7 1,2 Call a Windows Communication Foundation (WCF) service or a Web service from an ASP.NET Web page. 9 2 Implement a DataSource control. 8 1 Bind controls to data by using data binding syntax. 8 1,2 TROUBLESHOOTING AND DEBUGGING WEB APPLICATIONS (16 PERCENT) Configure debugging and custom errors. 12 1 Set up an environment to perform remote debugging. 12 1,2 Debug unhandled exceptions when using ASP.NET AJAX. 12 1 Implement tracing of a Web application. 12 2 Debug deployment issues. 12 1,2 Monitor Web applications. 12 2 WORKING WITH ASP.NET AJAX AND CLIENT-SIDE SCRIPTING (15 PERCENT) Implement Web Forms by using ASP.NET AJAX. 6 1 Interact with the ASP.NET AJAX client-side library. 6 2 Consume services from client scripts. 9 1,2 Create and register client script. 6 2 TARGETING MOBILE DEVICES (5 PERCENT) Access device capabilities. 15 1 Control device-specific rendering. 15 1 Add mobile Web controls to a Web page. 15 1 Implement control adapters. 15 1 PROGRAMMING WEB APPLICATIONS (17 PERCENT) Customize the layout and appearance of a Web page. 5 1,2,3 Work with ASP.NET intrinsic objects. 11 2 Implement globalization and accessibility. 13 1,2 Implement business objects and utility classes. 1 2,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 flow. 2,3 Chapter 2: Lessons 1 and 3; Chapter 3: Lessons 1 and 2 Implement the Generic Handler. 11 1 Exam 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. 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 office 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 fictitious. 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 Dedication For my mom, Tonya Snell. —M i k e S n e l l Acknowledgments I would first like to thank the authors of the first 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. —M i k e S n e l l v What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ Contents Introduction xxi System Requirements xxi Hardware Requirements xxi Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxii Using the CD and DVD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxii How to Install the Practice Tests xxiii How to Use the Practice Tests xxiv How to Uninstall the Practice Tests xxv How to Install the Code xxv Microsoft Certified Professional Program . . . . . . . . . . . . . . . . . . . . . . . . . xxvi Technical Support xxvi Evaluation Edition Software Support xxvii Chapter 1 Introducing ASP.NET 3.5 1 Before You Begin 2 Lesson 1: Understanding the Players .3 The Web Server’s Role 4 The Web Browser’s Role 5 Understanding the Role of Hypertext Transfer Protocol 6 Lesson Summary 15 Lesson Review 15 vi Contents Lesson 2: Creating a Web Site and Adding New Web Pages . . . . . . . . . . . 16 Creating Web Sites 16 Creating ASPX Pages 24 Web Site Compilation 28 Lesson Summary 30 Lesson Review 31 Lesson 3: Working with Web Configuration Files . . . . . . . . . . . . . . . . . . . . . 33 Understanding the Configuration File Hierarchy 33 Processing the Configuration Files 34 Editing Configuration Files 35 Lesson Summary 37 Lesson Review 38 Chapter Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Chapter Summary 39 Case Scenarios 39 Suggested Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Create a New Web Site Using Visual Studio 2008 40 Add a Web Page to the Web Site 40 Program a Web Application 40 Configure Settings for a Web Application 41 Take a Practice Test .41 Chapter 2 Adding and Configuring Server Controls 43 Before You Begin .44 Lesson 1: Understanding and Using Server Controls 45 Understanding the Life Cycle of an ASP.NET Web Page and Its Controls 46 HTML vs. Web Server Controls 52 HTML Server Controls 53 Web Server Controls 58 Lesson Summary 71 vii Contents Lesson Review 71 Lesson 2: Exploring Common Server Controls 73 The Label Control 74 The TextBox Control 75 The Button Control 76 The CheckBox Control 78 The RadioButton Control 78 Lesson Summary 82 Lesson Review 82 Lesson 3: Exploring Specialized Server Controls 84 The Literal Control 84 The Table, TableRow, and TableCell Controls 87 The Image Control 91 The ImageButton Control 94 The ImageMap Control 96 The Calendar Control 101 The FileUpload Control 108 The Panel Control 111 The MultiView and View Controls 114 The Wizard Control 118 The Xml Control 123 Lesson Summary 135 Lesson Review 136 Chapter Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .138 Chapter Summary 138 Case Scenarios 138 Suggested Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .139 Create a New Web Page Using Server Controls 140 Create Event Handlers for Pages and Controls 140 Program a Web Application 140 Take a Practice Test 140 viii Contents Chapter 3 Input Validation and Site Navigation 141 Before You Begin 142 Lesson 1: Performing Input Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . .143 Understanding the Validation Framework 143 Understanding the BaseCompareValidator Class 147 Understanding the RequiredFieldValidator Control 148 Using the CompareValidator Control 149 Using the RangeValidator Control 150 Using the RegularExpressionValidator Control 151 The CustomValidator Control 152 Lesson Summary 163 Lesson Review 163 Lesson 2: Performing Site Navigation 165 Is Page Navigation Necessary? 165 Choosing a Method to Navigate Pages 166 Client-Side Navigation 166 Cross-Page Posting 167 Client-Side Browser Redirect 169 Server-Side Transfer 170 Using the Site Map Web Server Control 171 Lesson Summary 178 Lesson Review 179 Chapter Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .180 Chapter Summary 180 Case Scenarios 180 Suggested Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .181 Create a Web Site and Program Redirection 181 Create a Data Collection Page with Validation 181 Implement the HyperLink Web Server Control 181 Take a Practice Test 182 . . . . . . . .708 Create a New Custom User Control 708 Create a New Custom Web Server Control 708 Create a New Composite Web Server Control 709 Create a. Composite Control 695 Creating a Templated Custom Web Control 701 Lesson Summary 705 Lesson Review 705 Chapter Review . . . . . . . . . . . . . . . . . . .

Ngày đăng: 29/11/2013, 01:00

TỪ KHÓA LIÊN QUAN