Put Your Views (and Pages) On a Diet
Posted by: youve been HAACKED,
on 04 Aug 2009 |
View original | Bookmarked: 0 time(s)
One of the complaints I often here with our our default view engine and Pages is that theres 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 ...