Go with MVC2. The planned release time is likely to be next month, given this now in RC. Despite the fact that one of the other posters speaks of minor changes, there are significant changes:
- Heavily Added Extension Helpers
- Strongly typed views
- View Model Data Annotation Check
- Many w / r performance improvements for caching "reflective" parts of code (expression trees can become expensive)
One of the best features you are developing for .NET 4 is the <%: syntax for automatically encoding HTML for strings in your views.
So, instead of using:
<%= Html.Encode("<script>alert('you've been hacked');</script>") %>
You can do it:
<%: "<script>alert('you've been hacked');</script>" %>
Think about it how to turn the equal sign on the side, for example, close the gate.
source share