How to set a hidden value in Razor
If I understand correct you will have something like this: <input value=”default” id=”sth” name=”sth” type=”hidden”> And to get it you have to write: @Html.HiddenFor(m => m.sth, new { Value = “default” }) for Strongly-typed view.