Get user name in Umbraco 6
I have done it in user Control /datatype and it's working fine.
umbraco.BusinessLogic.User u = UmbracoEnsuredPage.CurrentUser;
string userLoginName = u.LoginName;
string username = u.Login;
string useremail = u.Email;
No comments:
Post a Comment