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 are the ihttphandler and ihttphandlerfactory interfaces ?

0 Answers  


witch is the best insistute in sharpoint course.what abt future of share point course.

2 Answers  


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

0 Answers  


what is silver light when will we use silver light,

0 Answers  


What is the difference between appsetting and connectionstring tags in web.config file

2 Answers   HCL, TCS,






Explain the namespace classes used in asp.net mvc? : asp.net mvc

0 Answers  


Which is better union or union all?

0 Answers  


Demonstrate Render and PreRender?

0 Answers   QuestPond,


What is difference in .net 1.1 and .net 2.0?

0 Answers  


Whats an assembly

2 Answers   IBM,


What is the maximum amount of memory any single process on windows can address?

0 Answers  


Which asp.net objects encapsulate the state of the client and the browser?

0 Answers  


Categories