Getting User Information using SimpleMembership
问题 Still trying to get to grips to the new SimpleMembership with MVC4. I changed the model to include Forename and Surname which works fine. I want to change the information displayed when logged in so instead of using User.Identity.Name in the View I want to do something like User.Identity.Forename, what's the best way to accomplish this? 回答1: Yon can leverage @Html.RenderAction() feature available in ASP.NET MVC to display this kind of info. _Layout.cshtml View @{Html.RenderAction("UserInfo",