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 |
What is the difference between ASP and ASP.NET?
4 Answers Sans Pareil IT Services, TCS,
If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?
How to create multi language website in asp.net mvc? : Asp.Net MVC
Explain some of the major built-in objects in asp.net
To add a hyperlink column to the DataGrid which tag is used ?
How to prepare culture-specific formatting in .net.
What are the main requirements for caching?
What is the benefit of WebAPI over WCF?
How do you pass session values from one page to another ?
What is an example of an application service provider?
Can we have multiple web config files for an asp.net application?
How to make paging concepts in datagrid in ASP.NET?
0 Answers Sans Pareil IT Services,
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)