实例介绍
Professional+ASP.NET+MVC+3
PROFESSIONAL ASP NET MVC 3 FOREWORD INTRODUCTION CHAPTER 1 Getting started CHAPTER 2 Controllers 23 CHAPTER 3 Views 39 CHAPTER 4 Models 69 CHAPTER 5 Forms and hTML Helpers 93 CHAPTER 6 Data Annotations and validation 117 CHAPTER 7 Securing Your Application ∴........135 CHAPTER 8 AJAX 179 CHAPTER 9 Routing 211 CHAPTER 10 NuGet 239 CHAPTER 11 Dependency Injection 271 CHAPTER 12 Unit Testing 291 CHAPTER 13 EXtending mvc 315 CHAPTER 14 Advanced Topics 339 NDEX。 389 rs indd i 74/20114:2737PM rs inddⅱ 74/20114:2738PM PROFESSIONAL ASP NET MVC 3 Jon galloway Phil haack Brad wilso K. Scott allen WILEY John Wiley Sons, Inc ndo 74/20114:2738PM Professional AsPNET mvc 3 Published by John Wiley sons, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright o 2011 by John Wiley Sons, Inc. Indianapolis, Indiana Published simultaneously in Canada ISBN:978-1-118-07658-3 ISBN:978-1-118-15535-6(ebk) ISBN:978-1-118-15537-0ebk) ISBN:978-1-118-15536-3(cbk) Manufactured in the United States of america 10987654321 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through pay ment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA01923, (978)750-8400, fax(978)646-8600 Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley Sons, Inc, 111 River Street, Hoboken, NJ 07030,(201)748-6011, fax(201)748 6008,oronlineathttp://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro motional materials. The advice and strategies contained herein may not be suitable for every situation This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services If professional assistance is rcquircd, thc scrviccs of a competent professional pcrson should be sought. Ncithcr thc pub lisher nor the author shall be liable for damages arising herefrom. the fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher ndorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read For general information on our other products and services please contact our Customer Care Department within the Unitcd Statcs at (877)762-2974, outside the Unitcd Statcs at (317)572-3993 or fax(317)572-4002 Wiley also publishes its books in a variety of electronic formats. Some content that appears in print mlay not be available in electronic books Library of Congress Control Number: 2011930287 Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trade marks or registered trademarks of John Wiley Sons, Inc and/or its affiliates, in the United States and other countries and may not be used without written permission. All other trademarks are the property of their respective owners. John Wiley sons, Inc. is not associated with any product or vendor mentioned in this book rs indd it 74/20114:27:43PM To my wife rachel, my daughters rosemary, Esther, and Ellie, and to you for reading this book. Enjoy JON GALLOWAY My wife, Akumi, deserves to have her name on the cover as much as i do for all her support made this possible. And thanks to Cody for his fectious happin PHIL HAACK To Potten on potoma K. SCOTT ALLEN rs indd v 74/20114:27:43PM CREDITS ACQUISITIONS EDITOR PRODUCTION MANAGER Paul reese Tim Tate PROJECT EDITOR VICE PRESIDENT AND EXECUTIVE GROUP PUBLISHER Maureen Spears Richard Wadley TECHNICAL EDITORS VICE PRESIDENT AND EXECUTIVE PUBLISHER Eilon Lip Neil edde PRODUCTION EDITOR ASSOCIATE PUBLISHER Daniel scribner Jim mintel COPY EDITOR PROJECT COORDINATOR COVER Kimberly A Cofer Katherine crocker EDITORIAL MANAGER PROOFREADER Mary Beth Wakefield Sheilah Ledwidge, Word One FREELANCER EDITORIAL MANAGER INDEXER Rosemarie graham Robert swanson ASSOCIATE DIRECTOR OF MARKETING COVER DESIGNER David mayhew LeAndra Young BUSINESS MANAGER COVER IMAGE Any Knies Getty /David Madis ndo 74/20114:27:43PM ABOUT THE AUTHORS JON GALLOWAY works at Microsoft as a Community Program Manager focused on AsP.NEt MVC. He wrote the MVC Music Store tutorial, helped organize mvc Conf (a free online conference for the asP NEt MvC community), and travelled the world in 2010 teaching Mvc classes for the Web Camps tour. Jon previously worked at Vertigo Software, where he worked on several Microsoft conference websites, high profile Silverlight video players, and MiX keynote demos. Prior to that he's worked in a wide range of web development shops, from scrappy startups to Fortune 500 financialcompaniesHe'spartoftheHerdingCodepodcast(http://herdingcode.com),blogsat http://weblogs.aspnet/jgalloway,andtwittersasajongalloway.HelivesinSandiegowith his wife, three daughters, and a bunch of avocado trees. PHIL HAACK is a Senior Program Manager with the asP. NEt team working on the ASP. NET MVC project. Prior to joining Microsoft, Phil worked as a product manager for a code search engine, a dev manager for an online gaming company, and as a senior architect for a popular Spanish lan guage television network, among other crazy pursuits. As a code junkie, Phil Haack loves to craft software. Not only does he enjoy writing software, he enjoys writing about software and software management on his blog, attp: //haacked. com/. In his spare time, Phil contributes to various open source projects and is the founder of the Subtext blog engine project, which is undergoing a re-write using ASP.NET MVC, of course BRAD WILSON works for Microsoft as a Senior Software Developer on the Web platform and tools team on the ASP. NEt Mvc project. IIe joined Microsoft on the Patterns and Practices team in 2005, and also worked on the team that builds the Code plex open source hosting site. Prior to Microsoft, he has been a developer, consultant, architect, team lead, and cto at various software companies for nearly 20 years. He's also the co-author of the x Unit net open source developer test ing framework, along with James Newkirk (of NUnit fame). He has been an active blogger since 2001andwritesprimarilyonAsp.Nettopicsathttp://bradwilson.typepad.comaswcllas tweeting as abradwilson Brad lives in beautiful redmond, WA, where he hones his love for all types of ga-especially Poker K.SCOTT ALLEN is the founder of OdeToCode llc. Scott provides custom development, consulting, and mentoring services for clients around the world ndo 74/20114:27:43PM ABOUT THE TECHNICAL EDITORS EILON LIPTON joined the asp. net team as a developer at microsoft in 2002. On this team, he has worked on areas ranging from data source controls to localization to the UpdatePanel control. He now works on the ASp. NEt MVC Framework as a principal development lead Eilon is also a fre quent speaker on a variety of ASP NET-related topics at conferences worldwide. He graduated from Boston University with a dual degree in Math and Computer Science. In his spare time Eilon spends time in his garage workshop building what he considers to be well-designed furniture. If you know anyone who needs a coffee table that's three feet tall and has a slight slope to it send him an e-mail ndo 74/20114:27:43PM 【实例截图】
【核心代码】
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论