Re: computer username display
- From: \"jason via DotNetMonster.com\" <forum@xxxxxxxxxxxxxxxxx>
- Date: Wed, 06 Jul 2005 00:13:58 GMT
yupe... i got another different code that helps.. thanks a lot..~ oh.. by the
way.. do u noe how to send email in asp.net using vb.net? bust i don wish to
add the coding in the htmlform... actually i got one that all the html coded
inside.. but when i modify something..all the layout will be changed
completely automatically.. i just need 2 textbox for the user to key in and
then when he or she press the summit button, it will be sent to me... with
all the data he or shse typed inside..
thanks..`
Aaron Corcoran wrote:
>Jason,
>
>If you want to capture the user that is currently logged into your
>application, assuming you are using Integrated Authentication, simply
>put the following line of code:
>
>Dim strUser As String =
>System.Security.Principal.WindowsIdentity.GetCurrent.Name.ToString()
>
>This code will reveal a string in the format of DOMAIN\username.
>
>I hope this helps!
>Aaron
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200507/1
.
- Follow-Ups:
- Re: computer username display
- From: Aaron Corcoran
- Re: computer username display
- References:
- computer username display
- From: jason via DotNetMonster.com
- Re: computer username display
- From: Aaron Corcoran
- computer username display
- Prev by Date: Web Service Question
- Next by Date: Re: PDF On the fly?
- Previous by thread: Re: computer username display
- Next by thread: Re: computer username display
- Index(es):