What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?
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 |
How do u declare static variable and how it is declared and what is its lifetime?
How do you manage session in ASP and ASP.NET?
What are the options in ASP.NET to maintain state?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What is authentication in asp.net?
How will u decide when to use caching and when to use viewstate?
What is web.config. How many web.config files can be allowed to use in an application ?
10 Answers Accenture, BirlaSoft, Infosys, InterGraph, Satyam, Wipro,
Will session work if cookies is disabled?
What is difference b/w Generic List and Arraylist, Generic List Vs HashTable, Generic List Vs No Generic? Pls Explain with example.
What method must be overridden in a custom control? a) The Paint() method b) The Control_Build() method c) The Render() method d) The default constructor
1 Answers Icertis, Microsoft, Syntax Softtech,
whats the purpose of AUTOPOSTBACK property for the controls in asp.net?
what is CLR?