title: Html.HiddenFor with preset value
body: <p>This part was sloved thanks to <code>Ethan Brown</code>
  I want to set the value of my <code>Html.HiddenFor</code> helper with preset value 
  This is my code :</p>
  
  <pre><code>&lt;%: Html.HiddenFor(model =&gt; model.idv, new { @value = ViewBag.id })%&gt;
  &lt;%: Html.HiddenFor(model =&gt; model.etat, new { @value = "false" })%&gt;
  </code></pre>
  
  <p>But when execute my code i get the error that model.idv and modele.etat are null. 
  <br> 
  This is seconde part no sloved till now :
  <br>
  This is my action :</p>
  
  <pre><code>public ActionResult Reserver(string id)
  
      {
          var model = new Models.rservation
          {
              idv = id,
              etat = false
          };
          return View(model);
      }
  
  [HttpPost]
          public ActionResult Reserver(Models.rservation model)
          {
              if (ModelState.IsValid)
              {
                  entity.AddTorservation(model);
                  entity.SaveChanges();
                  return View();
              }
              else
              {
  
                  return View(model);
              }
          }
  </code></pre>
  
  <p>And this is my view page :</p>
  
  <pre><code>&lt;% using (Html.BeginForm("Reserver", "Home", FormMethod.Post, new { @class = "search_form" })) { %&gt;
  //some code textbox to fill
  &lt;input type="submit" value="Create" /&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>So when i click on submit button the model.idv is set again on null value</p>