title: How to set and get hidden field in asp.net mvc 3 or 4
body: <p>I am using ASP.NET.NVC MVC 4.</p>
  
  <p>How can I set a value for the hidden field in asp.net mvc 3 or 4?</p>
  
  <p>In the razor View I have written:</p>
  
  <pre><code> @Html.Hidden("HProjectTypeId", Model.ProductTypeId);
  </code></pre>
  
  <p>But in the controller, I'm getting the null value.</p>