简单的form认证问题:两个目录,不同的准入,如何实现? 我将根目录设定为不允许匿名登录,想将管理目录设为不允许非admin登录.现在的问题是:我的admin登录页是loginAdmin.aspx一般用户登录页是login.aspx(因为是不同的表)要达到这个效果,如何做呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 config---------------><authentication mode="Forms" > <forms loginUrl="login.aspx"></forms></authentication><authorization><deny users="?"/></authorization>.CS----------------->string UserName=this.TextBox1.Text.Trim();FormsAuthentication.RedirectFromLoginPage(UserName,false);Response.Redirect("default.aspx?User="+this.TextBox1.Text.Trim());得到用户名----------》 User.Identity.Name注销----------------》FormsAuthentication.SignOut();设置不需要验证的页可以在config里这样写,如下面的NewUser.aspx页<location path="User/NewUser.aspx"> <system.web> <authorization> <allow users="*"/> </authorization> </system.web> </location> 十万火急:请教asp.net服务器控件CheckBoxList在页面的源码中不显示 求助.关于大写数字转阿拉伯问题 刚做了个自考站,大家帮忙测试下! 求asp.net建设小型网站的过程丛书 本人建了一个"asp.net追求者"的群,希望大家来!!!! 缺少程序集引用 关于ASP.NET Portal Starter KiT asp.net 用户代理未处理sqlException 关于全局变量动态数组的一问题? 权限问题'CLAPTON\ASPNET' 登录失败 新手求助,连接SQL,怎么使用DataSet??? 软件版本的Ver和Build是根据什么定义的?
<forms loginUrl="login.aspx"></forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>.CS----------------->string UserName=this.TextBox1.Text.Trim();
FormsAuthentication.RedirectFromLoginPage(UserName,false);
Response.Redirect("default.aspx?User="+this.TextBox1.Text.Trim());得到用户名----------》 User.Identity.Name注销----------------》FormsAuthentication.SignOut();设置不需要验证的页可以在config里这样写,如下面的NewUser.aspx页
<location path="User/NewUser.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>