What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?
Answer / 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 |
Can you change a master page dynamically at runtime? How?
Difference between ASP Session and ASP.NET Session?
What is server side session management?
What is difference between inproc and outproc?
Explain the components of web form in asp.net
What parameters can you pass in the url of the api?
which directive is mandatory in page control
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What are the difference between function and stored procedure in .net programming language?
What are ASP.NET Web Forms? How is this technology different than what is available though ASP (1.0-3.0)?
What is role manager work in web.config? how to restrict perticular pages from the users using the role manager?
What are the advantages of using Master Pages?