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

How can you implement encapsulation in asp.net?

6 Answers   TCS,


What is manifest in .net framework?

0 Answers  


can u debug application programatically? if yes how?

0 Answers   FactorH,


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

0 Answers   Prompt Softech,


Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.

1 Answers   Lambent,






what is use to destroy an object? illustrate.

2 Answers   Patni,


What is a reflection?

0 Answers  


can we edit records from repeater control

2 Answers  


1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5

0 Answers   TCS,


What is asp.net response object?

0 Answers  


What is data binding in asp net?

0 Answers  


what is diffrent between asp & asp.net

2 Answers  


Categories