How to Get Current User Information
First,
Make definitions,
string siteURL = "http://siteURL"; SPSite site = new SPSite(siteURL); SPWeb web = site.OpenWeb();
Get Current User,
SPUser user = web.CurrentUser;
Get User Informations,
string name = user.Name; string loginName = user.LoginName; string eMail = user.Email;
Hope this post helps,
İlişkili Yazılar :
- How Can I Get Current Site Url in Sharepoint (Programmatically)
- How To “Add Site Collection Administrators in Sharepoint”
- Sharepoint Alert Problemi
- “Current Window” Print Screen
- Sharepoint Listelerinin GUID’ni Bulmak
- Automatic Refresh Uyarısı Nasıl Kaldırılır?
- How Can I Access The ‘Web Part Maintenance Page’ ?
- Fotoğraflarınıza Efekt Verin
- InfoPath Errors
- Google Translate Kullanarak .NeT de Dil Çevrimi
Tags: Current User, MOSS, Sharepoint
Posted in Sharepoint | No Comments »
| Önceki Yazı << Orman Yangını :( | Sonraki Yazı >> Tek Satırlık İf Komutu |



