What is role manager work in web.config?
how to restrict perticular pages from the users using the
role manager?
Answer Posted / 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 |
Post New Answer View All Answers
What are sql joins?
What are the server control tags in asp.net.?
What is dynamic web page with example?
What language does asp.net use?
What is the difference between Session and response.Redirect?
Do you know about caching with the datasource controls?
A web service can only be written in .net? State whether true or false.
Explain diff between dataset and datareader?
What is asp.net caching?
How you can return View from ASP.NET Web API method?
Disable browser cache for entire ASP.NET website?
Name the tools or API for developing or testing web api?
How to you can limit Access to Web API to Specific HTTP Verb?
What is the mvc model?
How can u debug your .net application?