.net - how to create a authentication rule if i use seperate login for two folders say admin folder and vendor folder -


i have following directory structure in asp.net webdirectory ! enter image description here

i want when body access anypage inside admin folder auto redirect login page of admin folder until login ... using login page ...

add in configureation section of web.config

<location path="admin">     <system.web>         <authorization>             <deny users="?"/>             <allow roles="super admin"/>//you can allow specific roles access folder         </authorization>     </system.web> </location>  <authentication mode="forms">         <forms name="signin" loginurl="~/login.aspx" defaulturl="~/default.aspx"/>     </authentication> 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -