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 |
What is the difference between response.redirect and server.transfer, how to choose one among the other?
There is a login page that has two text boxes with required field validators on it. The page has a login and cancel button. How can we ensure that the click on the cancel button doesnt fire a validation event.
Describe the difference between inline and code behind.
How to set/get parent page values in child page in asp.net
Is it necessary to lock application state before accessing it ?
what is the relation between delegates and events
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
How to implement role based security in asp.net mvc? : Asp.Net MVC
What does mvc represent in asp.net? : asp.net mvc
What are the modes of updation in an updatepanel? What are triggers of an updatepanel?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
Why is it preferred to not use finalize for clean up?