title: How to get textbox value from view to controller in mvc4 on submit button click
body: <p>How to get the textbox value from view to controller in mvc4?If I using httppost method in controller the page cannot found error was came.</p>
  
  <p>View</p>
  
  <pre><code>@model MVC_2.Models.FormModel
  
  @{
      ViewBag.Title = "DisplayForm";
  }
  
  @using (Html.BeginForm("DisplayForm", "FormController", FormMethod.Post))
  {
      &lt;form&gt;
          &lt;div&gt;
              @Html.LabelFor(model =&gt; model.Empname)
              @Html.TextBoxFor(model =&gt; model.Empname)
             @* @Html.Hidden("Emplname", Model.Empname)*@
  
              @Html.LabelFor(model =&gt; model.EmpId)
              @Html.TextBoxFor(model =&gt; model.EmpId)
             @* @Html.Hidden("Emplid", Model.EmpId)*@
  
              @Html.LabelFor(model =&gt; model.EmpDepartment)
              @Html.TextBoxFor(model =&gt; model.EmpDepartment)
             @* @Html.Hidden("Empldepart", Model.EmpDepartment)*@
  
              &lt;input type="button" id="submitId" value="submit" /&gt;
  
          &lt;/div&gt;
      &lt;/form&gt;
  }
  </code></pre>
  
  <p>model</p>
  
  <pre><code>   public class FormModel
      {
          public string _EmpName;
          public string _EmpId;
          public string _EmpDepartment;
  
          public string Empname
          {
              get {return _EmpName; }
              set { _EmpName = value; }
          }
  
          public string EmpId
          {
              get { return _EmpId;}
              set {_EmpId =value;}
          }
  
          public string EmpDepartment
          {
              get { return _EmpDepartment; }
              set { _EmpDepartment = value; }
          }
      }
  </code></pre>
  
  <p>controller</p>
  
  <pre><code>        public ActionResult DisplayForm()
          {
              FormModel frmmdl = new FormModel();
              frmmdl.Empname=**How to get the textbox value here from view on submitbutton click???**
          }
  </code></pre>