title: Html.HiddenFor value property not getting set
body: <p>I could have used</p>
  
  <pre><code>@Html.HiddenFor(x=&gt; ViewData["crn"])
  </code></pre>
  
  <p>but, I get, </p>
  
  <p><code>&lt;input id="ViewData_crn_" name="ViewData[crn]" type="hidden" value="500" /&gt;</code></p>
  
  <p>To somehow circumvent that issue(<code>id=ViewData_crn_ and name=ViewData[crn]</code>), I tried doing the following, but the "value" attribute isn't getting set.</p>
  
  <pre><code>@Html.HiddenFor(x =&gt; x.CRN, new { @value="1"})
  @Html.HiddenFor(x =&gt; x.CRN, new { @Value="1"})
  </code></pre>
  
  <p>generates </p>
  
  <pre><code>&lt;input id="CRN" name="CRN" type="hidden" value="" /&gt;
  &lt;input Value="500" id="CRN" name="CRN" type="hidden" value="" /&gt;
  </code></pre>
  
  <p>Am I doing anything wrong??
  Thanks</p>