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 are the different types of Caching techniques in ASP.NET?

0 Answers  


What is caching in asp.net?

0 Answers  


explain ado.net

6 Answers  


what is asp.net

4 Answers  


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

0 Answers  






What is preprocessor in .net and type, where it use?

0 Answers  


Tell me Asp.net Method Overriding.

3 Answers  


How do session tokens work?

0 Answers  


Explain the components of web form in asp.net

0 Answers  


Explain Session state management options in ASP.NET.

0 Answers   CDC,


Explain what does wsdl stand for?

0 Answers  


1. Briefly describe your ideal job?

1 Answers   Swatz Oils, Swetz Oil,


Categories