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 do u declare static variable and how it is declared and what is its lifetime?

0 Answers  


How do you manage session in ASP and ASP.NET?

1 Answers   Microsoft,


What are the options in ASP.NET to maintain state?

0 Answers   CDC,


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

0 Answers  


What is authentication in asp.net?

0 Answers  






How will u decide when to use caching and when to use viewstate?

5 Answers  


What is web.config. How many web.config files can be allowed to use in an application ?

10 Answers   Accenture, BirlaSoft, Infosys, InterGraph, Satyam, Wipro,


Will session work if cookies is disabled?

0 Answers  


What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No Generic? Pls Explain with example.

2 Answers   Polaris, Syntel,


What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor

1 Answers   Icertis, Microsoft, Syntax Softtech,


whats the purpose of AUTOPOSTBACK property for the controls in asp.net?

4 Answers  


what is CLR?

3 Answers   PrimeLine,


Categories