Can any one let me know how to fetch a logged username in a asp.net application page running on sharepoint site. It will be kind if expressed in details..
Regards amit
|
Can any one let me know how to fetch a logged username in a asp.net application page running on sharepoint site. It will be kind if expressed in details.. Regards amit |
|||
|
|
|
You can use SPContext.Current.Web.CurrentUser which returns an object of SPUser : http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spuser.aspx Also, SPSecurityContext.GetWindowsIdentity() will return an WindowsIdentity object. |
|||
|