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

What is the difference between response.redirect and server.transfer, how to choose one among the other?

3 Answers   247Customer,


There is a login page that has two text boxes with required field validators on it. The page has a login and cancel button. How can we ensure that the click on the cancel button doesnt fire a validation event.

2 Answers   Proteans,


Describe the difference between inline and code behind.

5 Answers   Siebel Systems,


How to set/get parent page values in child page in asp.net

3 Answers   Wipro,


Is it necessary to lock application state before accessing it ?

1 Answers  






what is the relation between delegates and events

4 Answers   IBM, iNautix,


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

0 Answers  


How to implement role based security in asp.net mvc? : Asp.Net MVC

0 Answers  


What does mvc represent in asp.net? : asp.net mvc

0 Answers  


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

0 Answers  


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

0 Answers  


Why is it preferred to not use finalize for clean up?

0 Answers  


Categories