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 asp.net mvc? : asp.net mvc

1 Answers  


What are Http handler ?

1 Answers   Patni,


Contrast OOP and SOA. What are tenets of each ?

1 Answers  


Explain diff. Between friend and protected friend?

1 Answers  


For a webapplication if i want to gice access controls like admin,users how can i give security like rolebased?

2 Answers   CTS, Syncfusion,


what is diffgram ?

3 Answers  


What is application session?

1 Answers  


what are the oops concepts are used in your project?

1 Answers   AppShark, IBM, Kotak,


What is server objects in asp.net?

5 Answers  


Explain how can you debug your .net application?

1 Answers  


What does clearing cache?

1 Answers  


Can you edit data in the Repeater control?

11 Answers   CAC, Creative,


Categories