Re: computer username display

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.


Quantcast