ASP.NET MVC in action : with MvcContrib, NHibernate, and by Jeffrey Palermo

Posted by

By Jeffrey Palermo

The Model-View-Controller pattern—universally often called MVC—provides a good, testable method of internet program improvement via keeping apart the foremost functions—or concerns—of an program into independently outlined roles.

ASP.NET MVC in Action is a finished advisor to MVC-based improvement utilizing this strong framework. It bargains a clearly-written advent either to the ASP.NET MVC Framework and to the MVC process. the focal point is on growing genuine, maintainable internet applications—so do not count on toy examples and brief snippets. The authors lead you from first-use via real-life scenarios.

One of the major merits of the MVC process is introducing a excessive measure of testability for your functions and procedure. ASP.NET MVC in Action indicates you the way to check every bit of your ASP.NET software and the way to introduce ideas of test-driven improvement into your technique.

Because the framework is totally pluggable, you will how one can paintings with exterior Inversion of regulate boxes like StructureMap, Windsor, and Spring.NET and open-source patience layers like NHibernate. through the ebook, the authors sprinkle in MvcContrib, an exceptionally great tool that gives universal extensions so that you do not need to jot down them your self. alongside the best way, you are going to enjoy the wide-ranging adventure of the authors, who've huge event with ASP.NET, Monorail, and Ruby on Rails. This booklet assumes that you simply already understand how to construct a customary ASP.NET software and offers so much examples in C#.

What's inside?

  1. Getting begun with the ASP.NET MVC Framework
  2. The version in depth
  3. The controller in depth
  4. The view in depth
  5. Routing
  6. Customizing and lengthening the ASP.NET MVC Framework
  7. Scaling the structure for complicated sites
  8. Leveraging current ASP.NET features
  9. AJAX in ASP.NET MVC
  10. Hosting and deployment
  11. Exploring MonoRail and Ruby on Rails
  12. Best practices
  13. Recipes

buy of the print publication comes with a proposal of a loose PDF, ePub, and Kindle publication from Manning. additionally to be had is all code from the publication.

What reviewers are saying

"Shows the way to placed all of the beneficial properties of ASP.NET MVC jointly to construct an exceptional application."

-From the Foreword through Phil Haack, Senior software supervisor, ASP.NET MVC crew, Microsoft

"This ebook positioned me in charge of ASP.NET MVC."

-Mark Monster, software program Engineer, Rubicon

"Highly advised for these switching from internet varieties to MVC."

-Frank Wang, leader software program Architect, DigitalVelocity LLC

"I'd hugely suggest this to an individual who's enthusiastic about construction internet functions with ASP.NET MVC."

-Jeremy Skinner, ASP.NET developer and technical proofreader of the book

"...does a very good task of not just exhibiting you what to do, but additionally presents cautionary phrases to prevent terrible practices which could result in upkeep concerns on non-trivial applications."

-Venkat Subramanian, NoFluffJustStuff Blogs

"I quite loved ASP.NET MVC in Action and hugely suggest it for a clean examine the ASP.NET MVC Framework."

-David Hayden, MVP

"In the tip [the authors] not just did an outstanding activity of placing jointly an outstanding useful advisor to ASP.NET MVC additionally they effectively embedded a few subversive ALT.NET innovations that may hopeful make us all greater builders. And on the finish of the day that could be a rattling high-quality accomplishment."

-Bobby Johnson

"ASP.NET MVC in Action will advisor you out of your first venture via complicated themes resembling AJAX and deploying on suboptimal internet hosting environments. The writing sort is obvious and concise. Diagrams and code examples are ample. i like to recommend it for someone searching for an excellent source for studying approximately or changing into a greater person of the ASP.NET MVC framework."

-Nathan Stott, associate and software program Engineer at Whiteboard-IT

"I'm more than happy with this e-book. i'd certainly suggest it to an individual drawn to ASP.NET MVC. Getting the 'beyond the textual content' that incorporates the CodeCampServer is simply icing at the cake, truly."

-Chris Stewart, CompiledMonkey.com

"ASP.NET MVC in Action is a real masterpiece...The authors, Jeffrey Palermo, Ben Scheirman and Jimmy Bogard are all thought of rock stars within the ASP.NET neighborhood they usually have unfolded the doorways to their live performance with ASP.NET MVC in Action."

-Mohammad Azam, Microsoft MVP

Show description

Read or Download ASP.NET MVC in action : with MvcContrib, NHibernate, and more PDF

Best visual basic books

Microsoft VBScript: Step by Step

Get tips from a well known scripting expert—and train your self the basics of Microsoft visible easy Scripting variation (VBScript). This educational gives you hands-on, self-paced studying labs that can assist you start automating Microsoft home windows administration—one step at a time. realize easy methods to: deal with folders and records with a unmarried script Configure community elements with home windows administration Instrumentation Administer clients and teams utilizing subroutines and energetic listing carrier Interfaces (ADSI) layout logon scripts to configure and continue person environments display screen and deal with community printers again up and edit the registry—avoiding universal pitfalls deal with blunders and troubleshoot scripts Simplify management for Microsoft alternate Server 2003 and net details companies 6.

Murach's ASP.NET 3.5 Web Programming with C# 2008

This ebook is for C# builders who are looking to how one can enhance specialist internet purposes with Microsofts ASP. web three. five. the 1st four chapters current a quick-start path that works either for newcomers and for knowledgeable net builders who're new to ASP. internet. Then, the subsequent 4 sections current: the abilities you would like for any enterprise software, the talents you wish for database functions, the abilities you would like for e-commerce functions, and the talents you wish for constructing code that may be reused in different internet purposes.

Internationalization and Localization Using Microsoft .NET

Internationalization and Localization utilizing Microsoft . internet is meant to be a entire dialogue of ways to localize code utilizing visible Studio . web. writer Nick Symmonds is familiar with some great benefits of getting ready for localization within the layout level and the hazards of localizing a venture after the very fact, and he discusses either equipment of localizing code during this ebook.

The Ultimate VB .NET and ASP.NET Code Book

Have you ever spotted that almost all of . web books look motive on hiding you from real-world code? you should buy a 1,500-page draft excluder, learn it intensively for a month, and nonetheless be none the wiser as to how you can write uncomplicated courses. This publication is different from that. you will find how one can receive Microsoft code and shop hours of improvement time; you will discover the reality at the back of developing quickly courses that run on something from PDAs to cellphones to microwaves; you will be uncovered to a hidden .

Extra info for ASP.NET MVC in action : with MvcContrib, NHibernate, and more

Example text

This works for small or short-lived applications, but it is inappropriate for long-lived business applications because of the coupling. For years, the industry has known that coupling presentation concerns with data access concerns is a recipe for disaster. These concepts gave birth to the wellknown data access layer. NET MVC Framework, a controller is part of the presentation layer. The best practice still stands to avoid putting data access in your presentation layer; any data access concern in a controller action creates technical debt that will put a tax on maintenance for the life of the application.

The HomeController is found, and its Execute method is invoked. The HomeController invokes the Index action. The Index action adds objects to the ViewData dictionary. The HomeController invokes the ActionResult returned from the action, which renders a view. The Index view in the Views folder displays the objects in ViewData. ViewPage, executes its ProcessRequest method. NET renders the response to the browser. NET MVC Framework. com/aspnet. NET MVC Framework, and most of the time you’ll need to pay attention only to the controller and the view.

The folder should contain only classes which are to be used as controllers, or base classes and interfaces that controllers might inherit from. The Views folder is special because it will contain code that will probably be the most familiar to Web Forms developers. NET MVC Framework uses present the data. Typically you’ll have a folder conventions for the placement of files. inside the Views folder for each controller which will contain views intended to be used specifically by that controller, as well as a Shared folder to contain shared views.

Download PDF sample

Rated 4.55 of 5 – based on 25 votes