so i've built a web application in asp.net and c#. That web application will be shown in a sharepoint webpage through i a iframe or something, thats not up to me. What i need to finish the project is a way of getting the sharepoint logged in username.
someone there told me it was simple and could be done with this code:
using Microsoft.SharePoint;
SPContext.Current.Web.CurrentUser.LoginName
however i get these errors:
"The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)"
"The name 'SPContext' does not exist in the current context."
do you guys have any idea of how to solve this or know any other way to do this?