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

What is difference Data List and Data Repeater Control ?

1 Answers   TCS,


About dataset and data mining ?

1 Answers   Cognizant,


How do you register JavaScript for webcontrols ?

1 Answers  


What is the use of global.asax file?

0 Answers  


What is the difference between a session object and cache object

2 Answers   CitiGroup, PennyWise,






what is a virtual class?

1 Answers   Patni,


If there is submit button in a from tell us the sequence what happens if submit is clicked and in form action is specified as some other page ?

1 Answers   MMTS,


What tags do you need to add within the asp:datagrid tags to bind columns manually?

5 Answers   Siebel Systems,


what is asp dotnet

2 Answers  


What is the full meaning of asp.net?

0 Answers  


If I'm developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?

7 Answers   Syntax Softtech,


what is the dllhell? why we use the dllhell?

4 Answers  


Categories