What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?
Answer Posted / 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 |
Post New Answer View All Answers
Explain About duration in caching technique
Which dll handles the request of .aspx page?
What are the different types of sessions in asp.net?
How does u call and execute a sp in .net?
What is the function of the ViewState property?
What is the use of session state and application state and difference between them?
Define reflection in .net?
What is sdlc process?
Explain how cookies work. Give an example of cookie abuse.
What New Features comes with ASP.NET Web API 2.0?
What is the used of "ispostback" property?
Please briefly explain the usage of global.asax?
What is the difference between visual basic and asp.net?
What is a server cookie?
What is razor? : asp.net mvc