title: ASP.NET MVC 4 - Login and Register form on same page
body: <p>I want to have both Login form and Register form on the same page, I tried like this:</p>
  
  <pre><code>@model Project.Models.LoginModel
  @model Project.Models.RegisterModel
  
  // Login form
  ...
  
  // Register form
  ...
  </code></pre>
  
  <p>...but I can only have one model reference at the top of the View. I tried with partial views for both forms, but then the functionality was lost.</p>
  
  <p>Any ideas on how to get this right? Thanks!</p>