Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call VFP EXE and return value
Message
 
 
To
03/08/2020 12:37:13
General information
Forum:
C#
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01675453
Message ID:
01675510
Views:
50
Hello Marco,

Note that I need to get the username who logged into the PC? That is, the username in the Active Directory.
Your example gives the username under which account the page is running. Which is different.
Thank you.


>Hello Dmitry, you can get the user name for the http call using
>
>system.web.httpcontext.user
>( https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext.user?view=netframework-4.8 )
>
>" you can use User.Identity.Name to get the name of the user on whose behalf the current process is running"
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform