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 |
How could you modify xaml content from javascript?
What threading model used in asp and asp.net?
Which control would you use if you needed to make sure the values in two different controls matched?
What is difference between URL and URI?
Give some salient points of difference between request processor and request dispatcher.
what is service contract,operation contract?
What is Master Page in Asp.net?
When we are requesting a new URL through Response.Redirect() the new page wil open on the new browser window or it wil open in the same window? If we use Server.Transfer() what wil happen?
What is new asp.net core?
What is AutoPostback?
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
In what languages in ASP written?