ASP.NET MVC 4 in Action
Jeffrey Palermo, Jimmy Bogard, Eric Hexter
ASP.NET MVC four in Action is a fast moving educational designed to introduce ASP.NET MVC to .NET builders and exhibit the right way to follow it successfully. All examples during this revised version are according to ASP.NET MVC four, so you will get complete assurance of positive factors akin to the Razor view engine, internet Matrix helpers, and stronger extensibility. you will see how your ASP.NET purposes can reap the benefits of adjustments within the .NET Framework.
About the Technology
ASP.NET MVC offers the structure had to separate an application's common sense and its UI. simply because every one component's function is easily outlined, MVC purposes are effortless to check, continue, and expand. the newest model, ASP.NET MVC four, takes good thing about .NET four and comprises strong beneficial properties just like the Razor view engine, net Matrix helpers, and superior extensibility.
About the Book
ASP.NET MVC four in Action is a hands-on advisor that indicates you ways to use ASP.NET MVC successfully. After a high-speed ramp up, this completely revised new version explores each one key subject with a self-contained instance so that you can leap correct to the elements you wish. in keeping with millions of hours of real-world adventure, the authors convey you necessary high-end suggestions you will not locate anyplace else. Written for builders, the booklet palms you with the next-level talents and sensible suggestions to create compelling net applications.
You want a few wisdom of ASP.NET and C#, yet no previous ASP.NET MVC adventure is assumed.
buy of the print ebook comes with a proposal of a loose PDF, ePub, and Kindle e-book from Manning. additionally to be had is all code from the ebook.
- Complete assurance of ASP.NET MVC 4
- The new internet API
- Full-system testing
About the Authors
Jeffrey Palermo, Jimmy Bogard, Eric Hexter, Matthew Hinze, and Jeremy Skinner are all ASP.NET MVPs, ASP insiders, and early adopters of ASP.NET MVC.
Table of Contents
- Introduction to ASP.NET MVC
- Hello MVC world
- View fundamentals
- Action-packed controllers
- View models
- Ajax in ASP.NET MVC
- Controlling URLs with routing
- Model binders and price providers
- Mapping with AutoMapper
- Lightweight controllers
- Organization with areas
- Third-party components
- Data entry with NHibernate
- Extending the controller
- Advanced view techniques
- Dependency injection and extensibility
- Portable areas
- Full method testing
- Hosting ASP.NET MVC applications
- Deployment techniques
- Upgrading to ASP.NET MVC 4
- ASP.NET net API
PART 1 HIGH-SPEED FUNDAMENTALS
PART 2 operating WITH ASP.NET MVC
PART three getting to know ASP.NET MVC
The HomeController in directory 2.1, the Index motion comprises traces of code: ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application."; go back View(); the 1st line assigns a few arbitrary textual content to the ViewBag, whereas the second one shows to the framework view may be rendered. The ViewBag is largely a dictionary—it presents the way to shop info that could then be accessed from inside a view. It makes use of the dynamic language good points of .NET four to permit the.
detailed expression ValidationMessageFor Returns the HTML markup for a validation-error message for every facts box that’s represented by means of the desired expression simply because our shape was once generated utilizing a strongly typed view, we will be able to make the most of this within the layout of the motion that the shape posts to. instead of enumerating each enter box as a separate motion technique parameter, we will be able to bind all of the parameters to an analogous view version we used to render the view, as proven subsequent. directory 3.9.
View to explicitly specify which template to take advantage of. also, templates are given additional details within the ViewDataDictionary that partials and different pages don’t obtain, and that info is within the ViewData.ModelMetadata estate. simply templates have the ModelMetadata estate populated by means of ASP.NET MVC; for partials and perspectives, this estate is null. With the ModelMetadata estate, you’re in a position to get entry to all of the metadata details generated from the version metadata supplier. This.
Exposes an AdditionalValues estate of kind IDictionary