What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?
Answer Posted / 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 |
Post New Answer View All Answers
what is the difference between response.write() and response.output.write()?
Explain server side state management system.
What is mta?
Why select Web API?
Explain the difference between web user control and web custom control?
What is difference between session and viewstate?
What is http only cookie?
How do you open a page in a new window?
What is cookies cache and session?
How does a content page different from a master page?
When maintaining session through sql server, what is the impact of read and write operation on session objects?
What are the page life cycle events?
Explain the difference between page.registerclientscriptblock and page.registerstartupscript?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
What is the size of Get method and how much data it can store?