title: Is there some way to use @Html.HiddenFor for complete model?
body: <p>Is there a way to use (or something simular)</p>
  
  <pre><code>  @Html.HiddenFor 
  </code></pre>
  
  <p>for your whole model. </p>
  
  <p>So instead of doing something like this:</p>
  
  <pre><code>  @Html.HiddenFor(model =&gt; Model.Person.Name)
    @Html.HiddenFor(model =&gt; Model.Person.LastName)
    @Html.HiddenFor(model =&gt; Model.Address.Street) 
  </code></pre>
  
  <p>use something like this (this example doesn't work)</p>
  
  <pre><code>  @Html.HiddenFor(model =&gt; Model)
  </code></pre>
  
  <p>I've already searched for it on stackoverflow and google...but haven't found anything about it.</p>
  
  <p>I need to hold on to some values for different models that aren't saved into db, so using only Html.HiddenFor the ID is not an option for me.</p>
  
  <p>Thanks in advance!</p>