title: Ajax.BeginForm inside Html.BeginForm multiple submit button mvc
body: <p>I have nested form on my page.</p>
  
  <pre><code>@using (Html.BeginForm())
  {
      @Html.TextBoxFor(model =&gt; model.ComapnyName, new { @class = "form-control", placeholder = @Resources.Customers.ComapnyName })
      @Html.ValidationMessageFor(model =&gt; model.PhoneNuComapnyNamember, "", new { @class = "text-danger" })
      // other stuff
      &lt;button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target=".modal-lg-customer-departments"&gt;
          &lt;i class="fa fa-plus"&gt;&lt;/i&gt; Add
      &lt;/button&gt;
      //bootstrap modal
      @using (Ajax.BeginForm("CreateCustomersDepartments", "Customers", null, new AjaxOptions
      {
          HttpMethod = "Post",
          UpdateTargetId = "departmentsId",
          OnSuccess = "$('#departmentsModal').modal('hide')"
      }))
      {
          @Html.TextBoxFor(model =&gt; model.Name, new { @required = "require", @class = "form-control", placeholder = Resources.Common.Name })
          @Html.ValidationMessageFor(model =&gt; model.Name, "", new { @class = "text-danger" })
          // other stuff
          //Create departments
          &lt;input type="submit" value="@Resources.Common.Save" class="btn btn-success" name="CreateDepartments" /&gt;   
      }   
      //Create company
      &lt;input type="submit" value="@Resources.Common.Save" class="btn btn-success" name="Create" /&gt;   
  }
  </code></pre>
  
  <p>when I click submit button (Create for main form) require validator keep field from modal (depoartments add). I begin from add departments, and click submit button on modalpopup the main form keep the validator. </p>
  
  <p>I tried to</p>
  
  <p><a href="https://www.linkedin.com/pulse/aspnet-mvc-how-have-multiple-submit-buttons-your-singh-pmp-mcp" rel="nofollow noreferrer">How to have multiple submit buttons in your MVC forms</a></p>
  
  <p>but page is not valid code does not come to controller.
  On the asp.net(web forms) I used validationGroup, how to get the same effect</p>