Wiley
Wiley.com
Print this page Share

Professional ASP.NET MVC 1.0

ISBN: 978-0-470-38461-9
456 pages
May 2009
Professional ASP.NET MVC 1.0 (0470384611) cover image
This book begins with you working along as Scott Guthrie builds a complete ASP.NET MVC reference application. He begins NerdDinner by using the File->New Project menu command within Visual Studio to create a new ASP.NET MVC Application. You'll then incrementally add functionality and features. Along the way you’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.

From there, the bulk of the rest of the book begins with the basic concepts around the model view controller pattern, including the little history and the state of the MVC on the web today. We'll then go into the ways that MVC is different from ASP.NET Web Forms. We'll explore the structure of a standard MVC application and see what you get out of the box. Next we dig deep into routing and see the role URLs play in your application. We'll deep dive into controllers and views and see what role the Ajax plays in your applications. The last third of the book focuses entirely on advanced techniques and extending the framework.

In some places, we assume that you're somewhat familiar with ASP.NET WebForms, at least peripherally. There are a lot of ASP.NET WebForms developers out there who are interested in ASP.NET MVC so there are a number of places in this book where we contrast the two technologies. Even if you're not already an ASP.NET developer, you might still find these sections interesting for context, as well as for your own edification as ASP.NET MVC may not be the web technology that you're looking for.

See More
Introduction.

Chapter 1: NerdDinner.

Chapter 2: Model-View-Controller and ASP.NET.

Chapter 3: ASP.NET > ASP.NET MVC.

Chapter 4: Routes and URLs.

Chapter 5: Controllers.

Chapter 6: Views.

Chapter 7: AJAX.

Chapter 8: Filters.

Chapter 9: Securing Your Application.

Chapter 10: Test Driven Development with ASP.NET MVC.

Chapter 11: Testable Design Patterns.

Chapter 12: Best of Both Worlds: Web Forms and MVC .

Index.

See More
Rob Conery works at Microsoft on the ASP.NET team. 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, Hawaii, with his wife and two daughters (Maddy and Ruby).

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.

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 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, but he also 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 rewrite, using ASP.NET MVC, of course.

Scott Hanselman works for Microsoft as a principal program manager in the Developer Division, 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 and a 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 www.hanselman.com and podcasts at www.hanselminutes.com and contributes to sites like www.asp.net, www.windowsclient.net, and www.silverlight.net. You can also fi nd him on Twitter, far too often.

See More
Download TitleSizeDownload
NerdDinner 1.0
This is the NerdDinner version 1.0 code to match the pre-publication Chapter 1 “NerdDinner” sample. Later versions of NerdDinner may be available at http://www.codeplex.com/nerddinner.
941.16 KB Click to Download
Chapter 1 45.27 KB Click to Download
Chapter 2 341 bytes Click to Download
Chapter 3 1.46 KB Click to Download
Chapter 4 9.47 KB Click to Download
Chapter 5 8.40 KB Click to Download
Chapter 6 13.81 KB Click to Download
Chapter 7 9.13 KB Click to Download
Chapter 8 6.07 KB Click to Download
Chapter 9 6.44 KB Click to Download
Chapter 10 5.38 KB Click to Download
Chapter 11 9.39 KB Click to Download
Chapter 12 6.68 KB Click to Download
See More

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
1 Note on Ch 1 Errata
All chapter 1 errata refer to Chapter 1 as it appears in print, not to the free unedited chapter 1 preview.
4/20/09
71, 76, 85 Error in Code
On pages 71, 76 (2 places), and 85 (2 places):

ModelState.AddRuleViolations(dinner.GetRuleViolations());

Should be:

ModelState.AddModelErrors(dinner.GetRuleViolations());
4/20/09
88 Error in Code
ViewData[“countries”] = new SelectList(PhoneValidator.AllCountries,
dinner.Country);

Should be:

ViewData[“Countries”] = new SelectList(PhoneValidator.Countries,
dinner.Country);
4/20/09
89 Error in Code
Countries = new SelectList(PhoneValidator.AllCountries,
dinner.Country);

should be

Countries = new SelectList(PhoneValidator.Countries,
dinner.Country);
4/20/09
89 Error in Code
Delete this line from the code:

[Authorize]
4/20/09
98 Typo in Text
In the first line the extra "e" after "the" should be deleted.
6/9/09
100 Error in Code
<li><%= Html.ActionLink("Find Dinner", "Index", "Home") %></li>

Should be

<li><%= Html.ActionLink("Find Dinner", "Index", "Dinners") %></li>
5/29/09
107 Typo in Text
Second to last paragraph, first line:

PaegeSize

Should be

PageSize
6/9/09
239 Typo in Text
Description for JavaScript(...) method:

second line "execute"

Should be

"executed"
6/12/09
See More

Related Titles

Back to Top