Prepare for Microsoft Exam 70-486—and help demonstrate your real-world mastery of developing ASP.NET MVC-based solutions. Designed for experienced developers ready to advance their status, Exam Ref focuses on the critical-thinking and decision-making acumen needed for success at the Microsoft Specialist level.
Exam Ref 70-486: Developing ASP.NET MVC 4 Web Applications
William Penberthy
Published with the authorization of Microsoft Corporation by: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, California 95472 Copyright © 2013 by William Penberthy 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. ISBN: 978-0-7356-7722-7 1 2 3 4 5 6 7 8 9 QG 8 7 6 5 4 3 Printed and bound in the United States of America. Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Book Support at
[email protected] Please tell us what you think of this book at http://www.microsoft.com/learning/booksurvey. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/ en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, email 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, O’Reilly Media, Inc., 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: Jeff Riley Developmental Editor: Kim Lindros Production Editor: Rachel Steely Editorial Production: Box Twelve Communications Technical Reviewer: Andre Tournier and Damien Foggon Copyeditor: Nancy Sixsmith Indexer: Angie Martin Cover Design: Twist Creative • Seattle Cover Composition: Ellie Volckhausen Illustrator: Rebecca Demarest
Contents at a glance Introduction xiii Preparing for the exam
xvi
Chapter 1
Design the application architecture
1
Chapter 2
Design the user experience
Chapter 3
Develop the user experience
145
Chapter 4
Troubleshoot and debug web applications
215
Chapter 5
Design and implement security
271
85
Index 347
Contents Introduction xiii Microsoft certifications
xiii
Acknowledgments xiv Errata & book support
xiv
We want to hear from you
xv
Stay in touch
xv
Preparing for the exam
xvi
Chapter 1 Design the application architecture
1