August 2009 Blog Posts
Saturday, August 15, 2009 7:47 PM | Comments

Note: This article was written for ASP.NET MVC 2 Preview 1 – it may become outdated in future previews. The Html helper in ASP.NET MVC 2 comes with some handy methods called “DisplayFor” and “EditFor” – please see Scott Gu’s article if you are not familiar with these new features. Long story short, they provide an ASP.NET Dynamic Data-like mechanism which uses reflection and templating to render a display form or an edit form. It works great for primitive properties like String, DataTime, Int32, as well as complex types like “Address.” However, as I was playing with them, I came across a rather funny exception (excusable, I suppose, due to the preview state of MVC 2 at the time of this writing).   This exception should never occur. Description: An unhandled exception occurred during the execution of the current web request. Please...