string strCurrentUser = SPContext.Current.Web.CurrentUser.LoginName
SPContext:
Represents the context of Http request in Microsoft Sharepoint Foundation.
Use the SpContext class to return context information about objects as the 1)current web application 2)site collection 3)site 4)list or list items
Current:
Current Property provides properties that access various objects within the current SharPoint Foundation context,for example the current list,web site , site collection or Web application.
SPContext:
Represents the context of Http request in Microsoft Sharepoint Foundation.
Use the SpContext class to return context information about objects as the 1)current web application 2)site collection 3)site 4)list or list items
Current:
Current Property provides properties that access various objects within the current SharPoint Foundation context,for example the current list,web site , site collection or Web application.
No comments:
Post a Comment