Answer the question
In order to leave comments, you need to log in
How to get the windows account name in JavaScript?
There is a task to pull out the username windows.
Googling, I realized that JS does not have access to the username. You can only use AcniveX in IE.
BUT, Asp.Net has access.
The question is how to execute an Asp.Net method in JS. Or maybe there are other methods?
Answer the question
In order to leave comments, you need to log in
Send a request to something that can be accessed and read the response
https://stackoverflow.com/questions/16184685/how-d...
I understand it only works for asp-based applications.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question