【问题标题】:Request.ServerVariables from a webservice (asmx)来自 web 服务 (asmx) 的 Request.ServerVariables
【发布时间】:2011-10-19 20:44:01
【问题描述】:

在我的服务器端页面(Intranet 环境)上,我使用以下代码找出正在使用该页面的用户:

Request.ServerVariables("LOGON_USER")

如何在 web 服务(asmx 文件)中使用该命令?我无法使用上面的行,因为我收到一条消息说Request is not declared。

【问题讨论】:

    标签: .net vb.net web-services .net-3.5 asmx


    【解决方案1】:

    使用HttpContext.Current.Request.ServerVariables...

    【讨论】:

      猜你喜欢
      • 2012-07-04
      • 1970-01-01
      • 1970-01-01
      • 2012-08-24
      • 2013-03-27
      • 1970-01-01
      • 1970-01-01
      • 2015-07-22
      • 2015-12-18
      相关资源
      最近更新 更多