Free Scott Guthrie's (ScottGu) NerdDinner.com chapter!
Updated for ASP.NET MVC 2, ScottGu's NerdDinner chapter builds a complete ASP.NET MVC reference application. We'll begin NerdDinner by using the File->New Project menu command within Visual Studio to create a new ASP.NET MVC Application. We'll then incrementally add functionality and features. Along the way we'll cover how to create a database, build a model layer with business rule validations, implement listing/details data browsing, provide CRUD (Create, Update, Delete) data form entry support, implement efficient data paging, reuse UI using master pages and partials, secure the application using authentication and authorization, use AJAX to deliver dynamic updates and interactive map support, and implement automated unit testing.
About the Authors
Jon Galloway works at Microsoft as an ASP.NET Community Program Manager. Jon previously worked at Vertigo Software, where he led teams building Microsoft conference websites and worked on some high profile Silverlight projects. Prior to that, he worked in a wide range of web development shops, from scrappy startups to Fortune 500 financial companies, and even spent some time as a submarine lieutenant. He's an ASP.NET and Silverlight Insider, former ASP.NET MVP, and regular contributor to several open source .NET projects. He's part of the Herding Code podcast, blogs at http://weblogs.asp.net/jgalloway, and twitters as @jongalloway. He lives in San Diego with 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 language 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, http://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.
Scott Hanselman works for Microsoft as a Principal Program Manager Lead in Server and Tools Online, aiming to spread the good word about developing software, most often on the Microsoft stack. Before this, he worked in eFinance for 6+ years and before that he was a Principal Consultant at Microsoft Partner for nearly 7 years. He was also involved in a few things like the MVP and RD programs and will speak about computers (and other passions) whenever someone will listen to him. He blogs at http://www.hanselman.com and podcasts at http://www.hanselminutes.com and contributes to sites like http://www.asp.net, http://www.windowsclient.net, and http://www.silverlight.net. You can also find him on twitter at @shanselman, far too often.
Scott Guthrie is corporate vice president of Microsoft's .NET Developer Division, where he runs the development teams responsible for delivering Microsoft Visual Studio developer tools and Microsoft .NET Framework technologies for building client and Web applications. A founding member of the .NET project, Guthrie has played a key role in the design and development of Visual Studio and the .NET Framework since 1999. Guthrie is also responsible for Microsoft's Web server platform and development tools teams. He has also more recently driven the development of Silverlight – a cross browser, cross platform plug-in for delivering next generation media experiences and rich internet applications for the Web. Today, Guthrie directly manages the development teams that build the Common Language Runtime (CLR), ASP.NET, Silverlight, Windows Presentation Foundation (WPF), IIS, Commerce Server and the Visual Studio Tools for Web, Client and Silverlight development. Guthrie graduated with a degree in computer science from Duke University.
Rob Conery is an expert in ASP.NET. He is the Creator of SubSonic and was the Chief Architect of the Commerce Starter Kit (a free, Open Source eCommerce platform for .NET). He lives in Kauai, HI with his wife and two daughters (Maddy and Ruby).
Creative Commons License
The free chapter from each book is licensed to you under the Creative Commons Attribution No Derivatives 3.0 license and may be redistributed according to those terms with the following attribution:
Professional ASP.NET MVC 2:
Chapter 1 "NerdDinner" from Professional ASP.NET MVC 2 written by Jon Galloway et al published by Wrox (ISBN: 978-0-470-64318-1) may be redistributed under the terms of Creative Commons Attribution No Derivatives 3.0 license. The original copy is available at http://tinyurl.com/aspnetmvc. The complete book Professional ASP.NET MVC 2 is copyright 2010 by Wiley Publishing Inc and may not be redistributed without permission."
Professional ASP.NET MVC 1.0:
"Chapter 1 "NerdDinner" from Professional ASP.NET MVC 1.0 written by Rob Conery, Scott Hanselman, Phil Haack, Scott Guthrie published by Wrox (ISBN: 978-0-470-38461-9) may be redistributed under the terms of Creative Commons Attribution No Derivatives 3.0 license. The original electronic copy is available at http://tinyurl.com/aspnetmvc
. The complete book Professional ASP.NET MVC 1.0 is copyright 2009 by Wiley Publishing Inc and may not be redistributed without permission."
Sign up for the Wrox Press Newsletter