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 many web.config a application can have ?
6 Answers Keane India Ltd, Manhattan, Vertex,
Is string a value type or a reference type?
How do we access view state value of this page in the next page?
how to update data set?
What is fulltrust?
When you use Ajax controls in the ASP.NET application?
Is asp.net a programming language?
What is the request flow used for asp.net mvc framework? : asp.net mvc
Name the tools or API for developing or testing web api?
What is interval time of GC in .net
How many column in table of sql server?
How to rename a table using sql queries?