asp.net有4种认证方式
1.windows
2,form
3:passport
4:None
现在的要求是
1:我的程序有两个一样的登陆页面(什么都一样),暂且叫"login1.aspx"和"login2.aspx".我想达到的效果是,当用登陆"login1.aspx"进行登陆时,我希望能以windows集成身份验证登陆,就是不需要输入用户名和密码,直接用windows用户名登陆程序;当我用"login2.aspx",希望用户能用form的验证方式,就是用户必须自己输入用户名和密码才能登陆系统.综合起来,感觉就是需要要设计一个自定义的验证模块,但是我没有头绪,请高手指点.
1.windows
2,form
3:passport
4:None
现在的要求是
1:我的程序有两个一样的登陆页面(什么都一样),暂且叫"login1.aspx"和"login2.aspx".我想达到的效果是,当用登陆"login1.aspx"进行登陆时,我希望能以windows集成身份验证登陆,就是不需要输入用户名和密码,直接用windows用户名登陆程序;当我用"login2.aspx",希望用户能用form的验证方式,就是用户必须自己输入用户名和密码才能登陆系统.综合起来,感觉就是需要要设计一个自定义的验证模块,但是我没有头绪,请高手指点.
解决方案 »
- 利用js获取服务器时间
- WCF 超时问题。。。。。。
- 纵表怎么插入数据
- 如何用js判断TextBox的输入在20-200个字之间
- 连接跳转到文件下载
- 初级的问题,怎样在CreateUserWizard的ContentTemplate中添加DropDownList控件?
- 将Gridview输出到Excel,出现一个错误,请大家帮忙
- 大侠门,我想问下,哪有asp.net+C#与flash完美结合的教程和范例啊?我急用啊,大家有经验的也可以进来交流交流~
- 大家好,问大家一个C#问题
- ASP.NET MVC 4 发布问题
- 怎么在Web.config 文里面修改,让它不解析text文件.
- ??????????????大家帮我看看这个判断是什么意思?????????判断用户权限的
http://community.csdn.net/Expert/topic/5707/5707454.xml?temp=3.852481E-02
<system.web>
<authorization>
<allow user="*" /> <!-- 授权所有用户对 public.aspx 的访问-->
</authorization>
</system.web>
</ocation><location path="publicFolder">
<system.web>
<authorization>
<allow user="*" /> <!-- 授权所有用户对 publicFolder 文件夹 的访问-->
</authorization>
</system.web>
</ocation>
Jinglecat(晓风残月 >> 问题需简洁,错误要详细)我现在想到的解决方案是:
默认form验证,然后在global.cs中进行登陆页面的判断,如果是login1.aspx.直接取windows的用户名,直接设置cookie,通过验证如果是login2.aspx.就是取用户自己输入的用户名和密码,进行验证此方案是看到cpp2017(慕白兄) ,想到的.
不知道是否可行???
second,you can add a new sub directory, then add the login1.aspx file, and add a new web.config in this sub directory, and give a proper configuration. The configuration will cover the parent configuation.good luck.
But i think my vendor will not accept this solution .
Coz she don;t want others to know about anther login page!
I mean login2.aspx is just for her using only !
But i think my vendor will not accept this solution .
Coz she don;t want others to know about anther login page!
I mean login2.aspx is just for her using only !
-----真是什么Boss都有 呵呵
还有这么用的??可在WinForm程序中嵌入,但是很难实现LZ说的效果
My-Blog地址2: http://blog.csdn.net/nyzfl
我只是个coder.只能去尽量完成任务!实在完不成就8 了
<system.web>
<authorization>
<allow user="*" /> <!-- 授权所有用户对 public.aspx 的访问-->
</authorization>
</system.web>
</ocation><location path="publicFolder">
<system.web>
<authorization>
<allow user="*" /> <!-- 授权所有用户对 publicFolder 文件夹 的访问-->
</authorization>
</system.web>
</ocation>