30 Dec 2010

Layouts And Sections With Razor

No Comments Uncategorized

Yesterday night I had decided, that this morning I was going to sit down and write a post on the uses of the IsSectionDefined method in the Razor syntax, and how useful it was for determining if views were implementing certain sections in a layout.  (which is very useful and provides a great deal of flexibility in your design)

image

However this morning I awoke to find that Scott Guthrie had written about the same subject, and who am I to compete against The Gu.

http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx

Enjoy!

27 Jul 2010

ASP.NET MVC 3 Preview 1 Released

No Comments Uncategorized

The title says it all, so go get your copy today and check out all the new features.  You can download it here.

New features include:

  • Razor View Engine
  • Dynamic View and ViewModel Properties
  • “Add View” Dialog Box Supports Multiple View Engines
  • Service Location and Dependency Injection Support
  • Global Filters
  • New JsonValueProviderFactory Class
  • Support for .NET Framework 4 Validation Attributes and IValidatableObject
  • New IClientValidatable Interface
  • Support for >NET Framework 4 Metadata Attributes
  • New IMetadataAware Interface
  • New Action Result Types (HttpNotFoundResultAction and HttpStatusCodeResultAction)
  • Permanent Redirect Support in the controller (RedirectPermanent, RedirectToRoutePermanent, and RedirectToActionPermanent)

Looks like this is going to be a very worth while upgrade, and a special thanks should be given to Phil and team for making ASP.NET MVC everything that ASP.NET WebForms isn’t.