通过C#编辑身份验证模式 [英] Edit authentication mode through c#

查看:102
本文介绍了通过C#编辑身份验证模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

如何编辑web.config文件身份验证模式.

现在我有了

Hello,

How to edit the web.config file authentication mode.

Now i have

<system.web>
    <trust level="Full" />
        <authentication mode="Forms">
</authentication></system.web>


我想通过C#代码将此身份验证模式形式更改为Windows.


Through C# code i want change this authentication mode forms to windows. how to do?

推荐答案

试试这个 ^ ].


尝试此

http://stackoverflow. com/questions/2661425/how-do-i-programmatically-set-integrated-windows-authentication-in-iis-on-a-net [
try this

http://stackoverflow.com/questions/2661425/how-do-i-programmatically-set-integrated-windows-authentication-in-iis-on-a-net[^]

hope it helps!


这篇关于通过C#编辑身份验证模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆