What is role manager work in web.config?
how to restrict perticular pages from the users using the
role manager?
Answer Posted / nisarg 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 ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is asp.net mvc? : asp.net mvc
What is difference between view state and session state?
What are the components of ado.net?
Describe in brief .net framework and its components.
What is synchronous and Asynchronous post back ?
List the major built-in objects in asp.net?
What do you mean by role-based security?
What is the difference between page directive include and action tag include?
What is content page in asp net?
Explain transparent caching with aop?
What is query string?
What is session object? Describe in detail.
Explain an object, class and method.
Define a multilingual website?
What is the difference between visual basic and asp.net?