asp.net mvc htmlattribute without value
问题 I am trying to create a hidden form according to the HTML5 spec, where the hidden attribute is used without a value. Now I have no idea how to force it into asp.net mvc's <% Html.BeginForm("ChangeContent", "Content", FormMethod.Post, new {hidden}); %> method as the one above does not compile with Compiler Error Message: CS0103: The name 'hidden' does not exist in the current context Any one knows a way out? EDIT Just out of curiosity using default html helpers? 回答1: I have a feeling that the