Opinionated ASP.NET MVC 2 Template Helpers

19. May 2010
If you have used ASP.NET MVC any, then you are probably aware of the MVC Contrib project hosted on CodePlex. It is a helpful library that provides useful tools that ASP.NET MVC doesn’t give you out of the box. Opinionated Input Builders One of the pieces that I really like is the Opinionated Inpu... [More]

Blog


ASP.NET MVC Cheat Sheets

9. October 2009
Most of you have seen many jQuery Cheat Sheets out in the wild, but as of recently there are now also many ASP.NET MVC Cheat Sheets to chose from. If you know of any other ASP.NET MVC Cheat Sheets, please let me know and I’ll add it to the above list. I hope these prove to be helpful for you. You m... [More]

Blog ,


Using MvcContrib ScriptInclude, Stylesheet, And T4MVC

8. October 2009
I am always looking for more ways I can integrate features of MVC Contrib into my ASP.NET MVC projects. I also have started using David Ebbo’s T4MVC Template that generates strongly typed helpers for ASP.NET MVC (download). Before I integrated these tools my script and style includes looked like… ... [More]

Blog ,


Using StructureMap with ASP.NET MVC & MVC Contrib

21. September 2009
I’ve found myself using the MVC Contrib project more and more lately. There are tons of golden framework nuggets just waiting to be used. I recently integrated StructureMap into the my current ASP.NET MVC framework using MVC Contrib. The reason I decided to write this post is because most of the re... [More]

Blog , ,


ASP.NET MVC RC Compiler Post-Build Step

25. February 2009
I was reading through the ASP.NET MVC RC Release Notes and saw a section that could be easy to skip over, but will help me out considerably on my MVC project. Previously, I've been burned by my Views having compile time errors, but not catching them until runtime. You can now add a new tag to your MVC project file to detect these errors at compile time! The following is a snippet from the ASP.NET MVC RC Release Notes document...

ASP.NET Compiler Post-Build Step

Currently, errors within a view file are not detected until run time. To let you detect these errors at compile time, ASP.NET MVC projects now include an MvcBuildViews property, which is disabled by default. To enable this property, open the project file and set the MvcBuildViews property to true, as shown in the following example:




true

Note: Enabling this feature adds some overhead to the build time.

You can update projects that were created with previous releases of MVC to include build-time validation of views by performing the following steps:

  1. Open the project file in a text editor.
  2. Add the following element under the top-most element:


    true
  3. At the end of the project file, uncomment the element and modify it to match the following example:





I just started upgrading my MVC project to the RC and having this Post-Build Step turned on really helped during the upgrade process.

[More]

ASP.NET MVC


Olark Livehelp