I am trying to create a hidden form according to the HTML5 specification where the hidden attribute is used without value. Now I do not know how to force it in asp.net mvc
<% Html.BeginForm("ChangeContent", "Content", FormMethod.Post, new {hidden}); %>
since the above is not compiled with
Compiler Error Message: CS0103: The name 'hidden' does not exist in the current context
Does anyone know a way out?
EDIT
Just out of curiosity using the default html helpers?
html5 asp.net-mvc asp.net-mvc-2
Trimack
source share