【发布时间】: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
在我的服务器端页面(Intranet 环境)上,我使用以下代码找出正在使用该页面的用户:
Request.ServerVariables("LOGON_USER")
如何在 web 服务(asmx 文件)中使用该命令?我无法使用上面的行,因为我收到一条消息说Request is not declared。
【问题讨论】:
标签: .net vb.net web-services .net-3.5 asmx
使用HttpContext.Current.Request.ServerVariables...
【讨论】: