title: How do you get the membership profile of a user in an ASP.NET MVC view?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/426609/how-to-assign-profile-values">How to assign Profile values?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm using ASP.NET MVC and the Membership providers. How do I get the profile of a user in a view? any particular method to get it?</p>
  
  <p>The template project out of the box access the username in this way:</p>
  
  <pre><code>&lt;%= Html.Encode(Page.User.Identity.Name) %&gt;
  </code></pre>
  
  <p>I'd like to have a similar way to access the profile data.</p>