views:

113

answers:

3

I am building a website that is using the aspnet membership classes. When the user logs in successfully, I redirect them to a myaccount page. In this page I want to load a profile, but I need to know what user is logged in. How would I do this with the aspnet membership stack?

Thanks

Jim Rieck

+2  A: 

HttpContext.Current.User.Identity.Name

Phaedrus
+1  A: 

Once a user is logged in to an ASP.NET Forms authenticated page, you can use the Page.User property to figure out who they are.

Harper Shelby
A: 

Thanks everyone for the answers.