title: A view with two patial views (both contain a form) causes validation on both forms when one is submitted
body: <p>I have a parent view with two partial views rendered on it.</p>
  
  <p>Each of the partial views has its own form which I post to.</p>
  
  <p>When I submit one of the forms both of them validate (server side).</p>
  
  <p>How can I prevent this?</p>
  
  <p>Both forms are set to post to the parent view.</p>
  
  <p><strong>Code</strong></p>
  
  <h2>A sign in page with a partial view for siging in and a partial view for registering. Both partial views contain forms.</h2>
  
  <h2>Index.cshtml</h2>
  
  <pre><code>    @{Html.RenderAction("LogOn", "LogOn");}
      @{Html.RenderAction("Register", "Register");}
  </code></pre>
  
  <h2>SignInController.cs</h2>
  
  <pre><code>public class SignInController : Controller
  {
      public ActionResult Index()
      {
          return this.View();
      }
  }
  </code></pre>
  
  <h2>_LogOn.cshtml</h2>
  
  <pre><code>    @using (Html.BeginForm("Index", "SignIn", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
      {
  </code></pre>
  
  <h2>LogOnController.cs</h2>
  
  <pre><code>    [HttpPost]
      public ActionResult LogOn(LogOnModel model)
      {
  
          return this.PartialView("_LogOn", model);
      }
  </code></pre>
  
  <h2>_Register.cshtml</h2>
  
  <pre><code>    @using (Html.BeginForm("Index", "SignIn", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
      {
  </code></pre>
  
  <h2>RegisterController.cs</h2>
  
  <pre><code>    [HttpPost]
      public ActionResult Register(RegisterModel model)
      {
  
          return this.PartialView("_Register", model);
      }
  </code></pre>