I am trying to access the currently logged in user when an event fires in a web part. I would typically think to do this with:
SPContext.Current.Web.CurrentUser
and specifically, to get the ID (what I need):
SPContext.Current.Web.CurrentUser.ID
This works as expected in say an event receiver. However, in my example web part, this is returning information about the machine user account. How would I best access the logged in SharePount user instead?