title: Correct syntax to determine User identity on Site.Master using ASP.NET Identity
body: <p>I cannot determine the correct syntax to determine the User identity on a Site.Master code behind page.</p>
  
  <p>Microsoft says:</p>
  
  <p>Display Logged in User Name: The Microsoft ASP.NET Identity Framework has added extension methods on  System.Security.Principal.IIdentity that allows you to get the  UserName and UserId for the logged in User. These extension methods are defined in the  Microsoft.AspNet.Identity.Core assembly. These extension methods are the replacement for  HttpContext.User.Identity.Name.</p>
  
  <p>While this may assist experienced coders, I would appreciate the correct coding to replace:</p>
  
  <pre><code>HttpContext.Current.User.IsInRole("Administrator") 
  </code></pre>