title: Razor view page with multiple partial view razor pages
body: <p>I am somewhat new to this and I am having trouble displaying a page which contains partial views and I want someone to look over my structure and maybe point out what I am doing wrong. </p>
  
  <p>This is my main page in which I will display other razor page contents int it. </p>
  
  <p>PROFILE PAGE: </p>
  
  <pre><code>@model Project.Models.PasswordModel
  @{ ViewBag.Title = "Profile Page"}
  
  //right column
  @if(ViewBag.HasLocalPassword)
  
  { @Html.Partial("passwordChange") }
  
  else { @Html.Partial("passwordSet")}
  
  //left column
  
  @Html.Partial("username")
  @Html.Partial ("biography")
  </code></pre>
  
  <p>when I created the username and biography razor view pages this is what I had in the "Add View" box: </p>
  
  <p>View engine: Razor(cshtml)
  only the "Use a layout or master page: " was checked and the box underneath was left empty ( Leave empty if it is set in a Razor _viewstart file)</p>
  
  <p>When I render the whole page all different parts are displayed but the username and biography areas are supposed to be filled with data from the database which isn't doing that. Only when I change the url to actually direct to <code>username</code> page that the proper information from the database is being displayed. </p>
  
  <p>when I click on the change password button after entering new password information I get this error message: </p>
  
  <p><code>The model item passed into the dictionary is of type 'Project.Models.PasswordModel', but this dictionary requires a model item of type 'Project.Models.UserNameModel'.</code></p>
  
  <p>any help to how I can properly display different razor view pages into one or the right structure please help me out.</p>