What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?



What is role manager work in web.config? how to restrict perticular pages from the users using the..

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

Post New Answer

More ASP.NET Interview Questions

How many web.config a application can have ?

6 Answers   Keane India Ltd, Manhattan, Vertex,


Is string a value type or a reference type?

13 Answers  


How do we access view state value of this page in the next page?

0 Answers   MindCracker,


how to update data set?

3 Answers   IBM, TCS,


What is fulltrust?

0 Answers  






When you use Ajax controls in the ASP.NET application?

0 Answers   Viscus Infotech,


Is asp.net a programming language?

0 Answers  


What is the request flow used for asp.net mvc framework? : asp.net mvc

0 Answers  


Name the tools or API for developing or testing web api?

0 Answers  


What is interval time of GC in .net

2 Answers  


How many column in table of sql server?

3 Answers  


How to rename a table using sql queries?

0 Answers  


Categories