On my serverside pages (intranet environment), I use the following code to find out which user is using the page:
Request.ServerVariables("LOGON_USER")
How do I use that command in a webservice (asmx file)? I can't use the line above as I get a message saying that Request is not declared.
use HttpContext.Current.Request.ServerVariables...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With