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 ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 681 | Hits: 44

Similar Posts

  • ASP.NET MVC and the templated partial view (death to ASCX) more
  • ASP.NET MVC View Engine using VB.NET XML Literals more
  • Page Switching With Parameters (the short version) more
  • Three New Master Page Tutorials Published more
  • Creating a Project from xaml and xaml.cs files more
  • Multi-Page Applications in Silverlight more
  • The New ASP.NET Framework more
  • Entity Framework object graphs and viewstate more
  • How wrong custom ViewState handling may harm more than help more
  • CS Dev Guide: Views more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD