2011-02-09 41 views

回答

2

中的Configureation中添加该web.config

<location path="Admin"> 
    <system.web> 
     <authorization> 
      <deny users="?"/> 
      <allow roles="Super Admin"/>//you can allow to specific roles to access folder 
     </authorization> 
    </system.web> 
</location> 

<authentication mode="Forms"> 
     <forms name="SignIn" loginUrl="~/login.aspx" defaultUrl="~/Default.aspx"/> 
    </authentication> 
+0

如何做到这一点..如果我使用...单独登录两个文件夹...说管理员文件夹和供应商文件夹 – user594849 2011-02-09 13:31:15

相关问题