.net Membership deny login
问题 I've been working with the .net login for a long time now, but my latest project calls for some not so great coding. I have one database which contains the tables etc for .net membership. There are 4 roles: Admin BasicAdmin PowerAdmin Member Now the top 3 are able to log into the Admin system, but I want to deny login for those in the role Member, I have added in the following to the webconfig: <authorization> <deny roles="Member"/> <deny users="?"/> </authorization> this works, to an extent.