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: Martin DelRe Developmental Editor: Karen Szall Project Editor: Rosemary Caperton Editorial Production: Online Training Solutions, Inc. Technical Reviewer: Kenn Scribner; Technical Review services provided by Content Master, a member of CM Group, Ltd. Cover: Tom Draper Design Body Part No. X17-21595
Exam 70-515: Web Applications Development with Microsoft .NET Framework 4 Objective
4. Configuring and Extending a Web Application 4.1 4.2 4.3 4.4
Configure authentication and authorization. Configure providers. Create and configure HttpHandlers and HttpModules. Configure initialization and error handling.
4.5 4.6 4.7 4.8
Reference and configure ASMX and WCF services. Configure projects and solutions, and reference assemblies. Debug a Web application. Deploy a Web application.
5. Displaying and Manipulating Data 5.1 5.2 5.3 5.4 5.5
Implement data-bound controls. Implement DataSource controls. Query and manipulate data by using LINQ. Create and consume a data service. Create and configure a Dynamic Data project.
6. Developing a Web Application by Using ASP.NET MVC 2 6.1 6.2 6.3 6.4
Create custom routes. Create controllers and actions. Structure an ASP.NET MVC application. Create and customize views.
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 website for the most current listing of exam objectives: http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-515#tab2
For my partner, Chelsea Knowles —Tony Northrup
For my wife, Carrie Snell —Mike Snell
Contents at a Glance Acknowledgments
Introducing ASP.NET 4
Using Master Pages, Themes, and Caching
Handling Events and Managing State
Using Server Controls
Input Validation and Site Navigation
Globalization and Accessibility
Creating Custom Web Controls
Debugging and Deploying
Working with Client-Side Scripting, AJAX, and jQuery
Writing and Working with HTTP Modules and Web Services
Connecting to and Querying Data with LINQ
Working with Data Source Controls and Data-Bound Controls
Implementing User Profiles, Authentication, and Authorization
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:
e would like to thank the hardworking people at Microsoft Press, in particular Rosemary Caperton, for getting us involved and for her guidance on this work.
Many thanks also to Kathy Krause and her team at OTSI (www.otsi.com) for keeping the book on schedule and providing excellent editing suggestions. She left no stone unturned and made us both seem like better writers than we are. Thanks also go to our fantastic technical editor, Kenn Scribner. He added a lot to this book by challenging our coding examples, working through the labs, getting the CD right, and helping ensure consistency. It was truly great to have such a strong technical editor on the team. Finally, we would like to thank our families and friends for their patience and understanding during the long nights and weekends that are the writing process.