Skip to main content
added 12 characters in body
Source Link
Ali Jafer
  • 17.8k
  • 1
  • 28
  • 41

You can try this if I understand you correct?

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

or

HttpContext.Current.User.Identity.Name

HttpContext.Current.User.Identity.Name

and

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

hope this helps :)

You can try this if I understand you correct?

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

or

HttpContext.Current.User.Identity.Name

and

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

hope this helps :)

You can try this if I understand you correct?

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

or

HttpContext.Current.User.Identity.Name

and

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

hope this helps :)

added 145 characters in body
Source Link
Ali Jafer
  • 17.8k
  • 1
  • 28
  • 41

You can try this if I understand you correct?

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

or

HttpContext.Current.User.Identity.Name

and

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

hope this helps :)

You can try this if I understand you correct?

HttpContext.Current.User.Identity.Name

hope this helps :)

You can try this if I understand you correct?

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.LoginName;

or

HttpContext.Current.User.Identity.Name

and

Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.ID;

hope this helps :)

Source Link
Ali Jafer
  • 17.8k
  • 1
  • 28
  • 41

You can try this if I understand you correct?

HttpContext.Current.User.Identity.Name

hope this helps :)