Re: computer username display

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: Protecting a field within a form
    ... Public Function IsUserInGroup(strGroup As String, ... "John Nurick" wrote: ... display the fields you don't want the users to be able to modify. ... John Nurick [Microsoft Access MVP] ...
    (microsoft.public.access.gettingstarted)
  • Re: How to convert Infix notation to postfix notation
    ... and make all strings const save where the intent ... function whose contract is to change the string. ... try to do using the pointer you get. ... but that you cannot modify the things pointed to by p. ...
    (comp.lang.c)
  • Re: string upper, string lower, string subthisforthat
    ... | allowed to modify any elements of the input elements. ... | sequence operations section of the Standard. ... | that the sequence is not allowed to be modified. ... | error to leave out case insensitive string comparisons. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Open folders to process files automatically
    ... Move it, Copy it, Read it, Modify it, Delete it. ... Dim AllFoldersAs String = Directory.GetDirectories ... Dim AvailableFiles() As String ... open each file with in the folder individually and process each one. ...
    (microsoft.public.dotnet.languages.vb)
  • EXPLORER.EXE wants to access internet
    ... ShieldsUp ng. ... adding if it is not there) a string value in the registry ... of "yes" (no quotes). ... If the value is already there, but is "no", just modify ...
    (microsoft.public.security)