For Aspnet - how to display custom properties from ApplicationUser in view in mvc 4?

0 votes
asked Mar 15, 2016 by murcia5254 (1,470 points)
I added custom properties to ApplicationUser like this:public class ApplicationUser : IdentityUser { public string FirstName { get; set; } public string LastName { get; set; }

4 Answers

–1 vote
answered Mar 25, 2016 by vg9642Should (1,950 points)

A simple tip on how to implement a custom IPrincipal in ASP.
+1 vote
answered Mar 30, 2016 by Gamino (200 points) 1 flag
commented Mar 30, 2016 by Venner (530 points)
This answer was working but there was a little problem with it
commented Apr 1, 2016 by julWhy (710 points)
This is an interesting problem to which I hoped there was an elegant solution. You have a business case that you need to continue in case of error
commented Apr 1, 2016 by guv_5255 (160 points)
I think that this is a problem that will sort itself out overtime
+1 vote
answered Apr 4, 2016 by Eroclear (220 points)
0 votes
answered Jun 1, 2016 by a_7492 (150 points)
I have a utility class that basically does this for you
I found this tutorial How to implement a custom IPrincipal in ASP.NET MVC 4 ...

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!