Steven Mandel

Subscribe to Steven Mandel: eMailAlertsEmail Alerts
Get Steven Mandel: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: RIA Developer's Journal, Microsoft Developer

Book Review

Book Review: Professional ASP.NET MVC 1.0

An introduction to Microsoft’s new framework that implements the MVC pattern

In recent years there has been a growing interest in applying design patterns to various aspects of programming. One of the more well-known patterns is the Model-View-Controller pattern or MVC. This pattern has a great deal of appeal in the web design environment because it offers the developer more control and a greater separation between the major aspects of web design - the presentation layer (View), the business layer (Controller), and the data layer (Model). In fact the pattern should probably have been called MCV as the controller portion really serves as the glue that holds the Model layer and View layer together.

This book introduces you to Microsoft's new framework that implements the MVC pattern as well as to a lot of different technologies that you might not have encountered or used in the past such as AJAX, LINQ, jQuery, and Virtual Earth.

Probably the most important chapter in this book is Chapter 1. This chapter has a well-thought-out tutorial that provides a good introduction into the MVC framework. I will warn you though that there are some errors in the samples. I would highly recommend downloading NerdDinner1.0 from the web site (http://nerddinner.codeplex.com) and comparing it to your code if you run into problems. You will also be amazed to see how far the Nerd Dinner application has progressed if you go to the following address: http://www.nerddinner.com/. Also, you might get the following error when trying to insert records:

LINQ To SQL: Cannot insert explicit value for identity column.

To fix this open the dbml and update the affected class as follows. Set the Auto Generate Value property to True . Set the Auto-Sync property to OnInsert. Set the Server Data Type tp BigInt NOT NULL IDENTITY.

Chapters 2-8 are reference materials that go into more detail regarding aspects of the MVC framework. The last four chapters are also very important. They cover the following topics and should be read thoroughly. Chapter 9 covers issues with security; Chapter 10 covers test-driven development; Chapter 11 covers testable design patterns; and Chapter 12 shows you how to combine your web forms and MVC together.

This is a great book to have if you want a good introduction to the MVC framework.

More Stories By Steven Mandel

Steven Mandel has worked in the IT industry for over 15 years designing databases using Microsoft Access and SQL Server. He has developed Web and Windows applications using VB.NET and has written numerous articles and reviews about ASP.NET and VB.NET.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.