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 th..

Answer / 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

More ASP.NET Interview Questions

How could you modify xaml content from javascript?

0 Answers  


What threading model used in asp and asp.net?

0 Answers  


Which control would you use if you needed to make sure the values in two different controls matched?

4 Answers   Siebel Systems,


What is difference between URL and URI?

0 Answers   MCN Solutions,


Give some salient points of difference between request processor and request dispatcher.

0 Answers   Tech Mahindra,


what is service contract,operation contract?

2 Answers  


What is Master Page in Asp.net?

9 Answers  


When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?

1 Answers  


What is new asp.net core?

0 Answers  


What is AutoPostback?

0 Answers  


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

0 Answers  


In what languages in ASP written?

4 Answers   Microsoft,


Categories