asp.net - 模拟asp.net中的非域用户帐户

标签 asp.net

我想从asp.net中的xyz域用户模拟abc域中的用户。 如果可以的话请粘贴代码。

最佳答案

在 web.config 中

<identity impersonate="true"
         userName="domain\user" 
          password="password" />

关于asp.net - 模拟asp.net中的非域用户帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6161995/

相关文章:

c# - 如何将报告转换为图像?

asp.net - Div点击上的伪元素未传递给按钮

asp.net - RegularExpressionValidator 不检测空字符串

asp.net - 使用 customErrors 重定向时如何返回合理的错误代码?

c# - ASP.NET 2.0 站点中的 ASP.NET 4.0 应用程序能否使用相同的表单例份验证 cookie?

asp.net - 获取gridview中的列索引值

c# - ASP.net母版页/内容页简单设计问题

c# - 添加迁移 : A parameter cannot be found that matches parameter name 'Context'

asp.net - 母版页中的粘性页脚

asp.net - 默认文档未尝试 IIS 8.5 中的所有文件