What is role manager work in web.config?
how to restrict perticular pages from the users using the
role manager?
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 |
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
What I need to create and run an asp.net application?
What is the extension of master page in asp.net?
What is a 1x1 pixel?
What are the different properties of server control that exists?
how to convert from sql2000 numeric to int in asp.net with sqlparameter?
what is machine key error in asp.net? how to solve it?
What is a postback ispostback and autopostback in asp net?
What is the difference between the response.write() and response.output.write() methods?
What is the main function of url routing system in asp.net mvc? : asp.net mvc
What is the concept of view state in asp.net?
What type of code (server or client) is found in a Code-Behind class?
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)