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

Can you change a master page dynamically at runtime? How?

0 Answers  


Difference between ASP Session and ASP.NET Session?

2 Answers  


What is server side session management?

0 Answers  


What is difference between inproc and outproc?

0 Answers  


Explain the components of web form in asp.net

0 Answers  






What parameters can you pass in the url of the api?

0 Answers  


which directive is mandatory in page control

3 Answers   AG Technologies,


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

0 Answers  


What are the difference between function and stored procedure in .net programming language?

0 Answers  


What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?

1 Answers  


What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?

1 Answers   Patni,


What are the advantages of using Master Pages?

0 Answers   MCN Solutions,


Categories