title: Save data from diffrent partial views on Single view on single button submit in mvc 3
body: <p>i have three classes </p>
  
  <pre><code>  public partial class User
  {          
      public string No_ { get; set; }      
      public string LastName { get; set; }   
      public virtual ICollection&lt;Login&gt; Logins { get; set; }  
      public virtual ICollection&lt;Education&gt; Educations { get; set; }
  } 
  public partial class Education
  {
      public string No_ { get; set; }
      public string UserId { get; set; }
      public string Degree { get; set; }
      public string Institution { get; set; }
      public string Percentage { get; set; }
  }
  public partial class Login
  {        
      public string No_ { get; set; }     
      public string UserId { get; set; }       
      public string Username { get; set; }
      public string Password { get; set; }
      public virtual User User { get; set; }
  }
  </code></pre>
  
  <p>i have made three partial views for three diffrent models and made it render into a page as below </p>
  
  <pre><code>@{
  ViewBag.Title = "Register";
  Layout = "~/Views/Shared/BlankLayout.cshtml";
   }
   &lt;h2&gt;
  Register&lt;/h2&gt;@using (@Html.BeginForm())
  {
        @Html.Partial("LoginPartialView")
  
        @Html.Partial("UserPartialView")
  
        @Html.Partial("ProfessionPartialView")
  
        &lt;section&gt;
            &lt;div&gt;
               &lt;button class="reset"&gt;Reset&lt;/button&gt;
               &lt;button class="submit" name="submit" value="Submit"&gt;Submit&lt;/button&gt;
            &lt;/div&gt;
     &lt;/section&gt;
  }
  </code></pre>
  
  <p>what i want is when i click the submit button all the data from the partial views should get to [httppost] where i can save the data to User,Education,Login Tables . how to get the data into the controller which has http post controller like : </p>
  
  <pre><code>[HttpPost]
      public ActionResult Register(?,?,?)
      {
          context.Logins.Add(LoginObject);
          context.Educations.Add(EducationObject);
          context.Professions.Add(ProfessionObject);
          return View();
      }
  </code></pre>
  
  <p>i just want to know how to get the above partial views data into the httppost controller so that i can save the data as mentioned above</p>
  
  <p>i am pretty much novice in Mvc 3 Pardon me if i am making no sense while i am asking . please guide me along with </p>