Steve Michelotti

218 posts

A Closer Look at the HiddenInput Attribute in MVC 2

MVC 2 includes an attribute for model metadata called the HiddenInput attribute. The typical usage of the attribute looks like this (line #3 below): public class PersonViewModel { [HiddenInput(DisplayValue = false)] public int? Id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } } So if you displayed your PersonViewModel with Html.EditorForModel() or Html.EditorFor(m => m.Id), the framework would detect the [HiddenInput] attribute metad...


NOVA Code Camp - Code Samples

Thanks to everyone who attended my MVC 2 presentation at NOVA Code Camp. The code samples and PowerPoint can be downloaded here: Top 10 Ways MVC 2 Will Boost Your Productivity [http://code.msdn.microsoft.com/Release/ProjectReleases.aspx?ProjectName=michelotti&ReleaseId=4333] ....


MVC 2 Presentation – Final Demo

In my presentation this past weekend at NoVa Code Camp, a member of the audience caught my final demo on video. In this demo, I combine multiple new features from MVC 2 to show how to build apps quickly with MVC 2. These features include: * Template Helpers / Editor Templates * Server-side/Client-side Validation * Model Metadata for View Model * HTML Encoding Syntax * Dependency Injection * Abstract Controllers * Custom T4 Templates * Custom MVC Visual Studio 2010 Code Snippets The pro...


Visual Studio 2010 Pro Power Tools Screencast

Microsoft just released the Visual Studio 2010 Pro Power Tools extension and it is awesome. A summary of all the features can be found here [http://blogs.msdn.com/b/lisa/archive/2010/06/08/visual-studio-2010-pro-power-tools-released-today.aspx] and it is available in the Visual Studio Gallery here [http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef] . There are a bunch of great features but, in my opinion, the best one is the replacement for the Add Refere...


ILMerge - Unresolved assembly reference not allowed: System.Core

ILMerge [http://www.microsoft.com/downloads/details.aspx?familyid=22914587-b4ad-4eae-87cf-b14ae6a939b0&displaylang=en] is a utility which allows you the merge multiple .NET assemblies into a single binary assembly more for convenient distribution. Recently we ran into problems when attempting to use ILMerge on a .NET 4 project. We received the error message: **An exception occurred during merging: Unresolved assembly reference not allowed: System.Core. at System.Compiler.Ir2md.GetAssembly...