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 DTS package?

2 Answers   Accenture, TCS,


What are the various session state management options provided by asp.net?

0 Answers  


What are different templates available in Repeater,DataList and Datagrid ?

1 Answers  


State Management (viewstate, session etc)

2 Answers   Syntel,


Explain the use of view state?

0 Answers  






Is asp.net free?

0 Answers  


What is the parent class of all the web server control?

0 Answers  


What is deference between asp.net, vb.net, c# & j#

2 Answers  


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

0 Answers   Siebel,


What is the difference between runtime version and version?

0 Answers  


What is session and application variable in asp net?

0 Answers  


Types of optimization and name a few ?

3 Answers   Accenture,


Categories