i work with fbamembership provider connect to Aspnetdb using c# i try to get name of current user in SharePoint 2013 , i use two different methods but a problem has occurred when i use the first one method 1: SPContext.Current.Web.CurrentUser.LoginName; but it return null! i don't know why!
method 2: HttpContext.Current.User.Identity.Name; return "0#.f|fbamembershipprovider|test@hotmail.com"
Is there a way to return "test@hotmail.com" only. Thank You