Get windows user name with form authentication

Susanto Effendy <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <3645778D865716409B36DDA90257CEFA010E40AB@ms2.mbadomain.allianz.my>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.