开发者

Request.ServerVariables from a webservice (asmx)

开发者 https://www.devze.com 2023-03-25 16:11 出处:网络
On my serverside pages (intranet environment),开发者_StackOverflow中文版 I use the following code to find out which user is using the page:

On my serverside pages (intranet environment),开发者_StackOverflow中文版 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...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号