If you have a model object with a property named Id , you may have run into an issue where your model state is invalid when binding to that model even though you don't have an "Id" field in your form. The following scenario should clear up what I mean. Suppose you have the following simple model with two properties. public class Product { public int Id { get; set; } public string Name { get; set; } } And you are creating a view to create a new Product. In such a view, you obviously don't want the user to specify the Id. <% using (Html.BeginForm()) { %> < fieldset > < legend > Fields </ legend > < div class ="editor-label" > <% = Html.LabelFor(model => model.Name) %> </ div > < div class...(read more) ...
Go to the complete details ...