List Info

Thread: Get windows user name with form authentication




Get windows user name with form authentication
user name
2006-12-13 01:44:57
Try it with Anonymous access UNCHECKED

-----Original message-----
From: Susanto Effendy susanto.effendyALLIANZ.COM.MY
Date: Tue, 12 Dec 2006 21:46:58 -0800
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: [DOTNET-WEB] Get windows user name with form
authentication

> Hi
>
> I am using form authentication and I need to get the
windows login name.  How can I achieve this ?  I have tried
>
> strName = Principal.WindowsIdentity.GetCurrent.Name
>
> strName = User.Identity.Name
>
> but it does not work, can anyone enlighten me ?  Thanks
in advance.
>
> Best regards
>
> SST
>
>
> This e-mail and any attachments therewith are intended
only for the use of the address. This e-mail may contain
confidential and privileged information. Any unauthorized
use, copying or  disclosure of information contained in this
e-mail or its attachments is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please
contact the sender via return e-mail and delete this e-mail
and attachments thereafter. Any confidentiality or privilege
is not waived or lost because this e-mail has been sent to
you by mistake. Any liability for viruses is excluded to the
fullest extent permitted by law.
>
> ===================================
> This list is hosted by DevelopMentorŪ  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )