title: how to pass textbox value to @html.hidden() to go to my controller MVC
body: <p>how to pass textbox value to @html.hidden() to go to my controller MVC
  which my view is :</p>
  
  <pre><code>@using (Html.BeginForm("Reject", "Maker", FormMethod.Get))
  {
   &lt;div class="filed"&gt;
   &lt;form class="RejectForm"&gt;
    &lt;p&gt; &lt;input type="text" class="RejectTextBox" name="HidField" id="HidField" value="" placeholder="سبب الرفض"&gt; 
    @Html.ValidationMessage("_strRejectReason", new { @style = "color:red" })&lt;/p&gt;
    &lt;br /&gt;
  
    &lt;input id="RejectButton" type="submit" value="Reject"/&gt;                                           
    &lt;/form&gt;
    &lt;/div&gt;
  
   @Html.HiddenFor(model =&gt; model._strRejectReason, new { id = "HidField"})
   @Html.Hidden("id", item.Id);
   &lt;p&gt;@Html.ValidationMessage("CustomError", new { @style = "color:red" })&lt;/p&gt;
   }
  </code></pre>
  
  <p>the Problem is my controller receives an empty object of the model which is the model contain
  two properties int id ,string _strRejectReason which i send them using @Html.Hidden(); but the model object in controller  as paramter is empty my controller is :</p>
  
  <pre><code>public ActionResult Reject(MakerTransactions MakerTransactions)
      {
          MakerCheckerUnitOfWorkBase _MakerCheckerUnitOfWorkBase = new MakerCheckerUnitOfWorkBase();
          MakerTransactions.RouteAgentsConfigsMaker = _MakerCheckerUnitOfWorkBase.RouteAgentsConfigsChecker.RejectMaker(MakerTransactions.id,MakerTransactions._strRejectReason);
  
          return View(MakerTransactions);
      }
  </code></pre>