0
ich in web.config diesen Code bin mit zur Authentifizierungmit web.config für bestimmte Ordner Rollen einschränken
<authentication mode="Forms">
<forms timeout="2000" name="A" loginUrl="login.aspx" protection="None" path="/"></forms>
</authentication>
und verwenden diese web.config in jedem Ordner
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow roles="Admin"/> // or other roles in different pages
</authorization>
</system.web>
</configuration>
Wenn Benutzer ohne Admin Role
möchte diese Seite öffnen, automatisch umleiten zu "login.aspx"
Ist es möglich, auf andere Seite wie "access-denied.aspx"
umleiten
danke Praneeth, aber ich möchte dieses Problem zu handhaben, ohne Code zu verwenden, – Mironline