Hi Dave,
Thanks for posting in the community!
From your description, you'd like to get the loged user's
username(idenitity) in your ASP.NET web application. And you're using the
Windows Authentication and also integrated the share-point portal
server,yes?
If there is anything I misunderstood, please feel free to let me know.
As for this problem, I think Kevin's suggestion that use the
Request.ServerVariables("LOGON_USER") is reasonable since the
Request.ServerVariables collection has many useful infos, more detailed
info on them, you can view the following reference in MSDN:
#Request.ServerVariables Collection
http://msdn.microsoft.com/library/en-us/iissdk/iis/ref_vbom_reqocsv.asp?fram
e=true
In addtion, as you're using the Windows Authentication in ASP.NET you can
also try the "HttpContext.Current.User"
it also contained the currently authenticated user's info. Here is the
detailed description on it in MSDN:
#HttpContext.User Property
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebhttpcontext
classusertopic.asp?frame=true
and here is another tech article discussing on the Authentication and
Authorization model in ASP.NET:
#Authentication and Authorization
http://msdn.microsoft.com/library/en-us/dnadvnet/html/vbnet10282003.asp?fram
e=true
Hope they're helpful.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx