One of the complaints I often here with our our default view engine and Pages is that there?s all this extra cruft in there with the whole page directive and stuff. But it turns out that you can get rid of a lot of it. Credit goes to David Ebbo , the oracle of all hidden gems within the inner workings of ASP.NET, for pointing me in the right direction on this. First, let me show you what the before and after of our default Index view ( reformatted to fit the format for this blog ). Before <%@ Page Language ="C#" MasterPageFile ="~/Views/Shared/Site.Master" Inherits ="System.Web.Mvc.ViewPage" %> < asp:Content ID ="indexTitle" ContentPlaceHolderID ="TitleContent" runat ="server"...(read more) ...
Go to the complete details ...