What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?
Answer / alb.shah
Role manager work -
Role management helps you manage authorization,
which enables you to specify the resources that users in
your application are allowed to access. Role management
lets you treat groups of users as a unit by assigning users
to roles such as manager, sales, member, and so on. (In
Windows, you create roles by assigning users to groups such
as Administrators, Power Users, and so on.)
Web.config code to restrict users from accessing some pages
given as below : -
<configuration>
<location path="memberPages">
<system.web>
<authorization>
<allow roles="BUILTIN\Administrators" />
<deny users="*" />
</authorization>
</system.web>
</location>
<!-- other configuration settings here -->
</configuration>
Is This Answer Correct ? | 4 Yes | 0 No |
What is difference Data List and Data Repeater Control ?
About dataset and data mining ?
How do you register JavaScript for webcontrols ?
What is the use of global.asax file?
What is the difference between a session object and cache object
2 Answers CitiGroup, PennyWise,
what is a virtual class?
If there is submit button in a from tell us the sequence what happens if submit is clicked and in form action is specified as some other page ?
What tags do you need to add within the asp:datagrid tags to bind columns manually?
what is asp dotnet
What is the full meaning of asp.net?
If I'm developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?
what is the dllhell? why we use the dllhell?