Skip to Main Content
ASP.NET MVC 4 in Action
book

ASP.NET MVC 4 in Action

by Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
May 2012
Intermediate to advanced content levelIntermediate to advanced
440 pages
13h 54m
English
Manning Publications
Content preview from ASP.NET MVC 4 in Action

Chapter 17. Advanced view techniques

 

This chapter covers
  • Using layouts to craft site-wide templates
  • Applying partials for shared snippets of content
  • Leveraging child actions for common widgets
  • Eliminating subtle URL-generation
  • Examining alternative view engines with the Spark view engine

 

The MVC pattern gives us separation of concerns between the model, controller, and view, but this pattern didn’t eliminate the need for developers to carefully design their views. You saw in the last chapter how you can use controller extension points to build clean, easy-to-modify controllers. With the elimination of code-behind and the addition of a view model object, you can focus strictly on rendering content inside your view. But without careful ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming ASP.NET MVC 4

Programming ASP.NET MVC 4

Jess Chadwick, Todd Snyder, Hrusikesh Panda
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek
ASP.NET Core and Vue.js

ASP.NET Core and Vue.js

Devlin Basilan Duldulao

Publisher Resources

ISBN: 9781617290411Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link