3

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.

oshirowanen
  • 15,297
  • 82
  • 198
  • 350

1 Answers1

6

use HttpContext.Current.Request.ServerVariables...

Yahia
  • 69,653
  • 9
  • 115
  • 144