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 can you implement encapsulation in asp.net?
What is manifest in .net framework?
can u debug application programatically? if yes how?
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.
what is use to destroy an object? illustrate.
What is a reflection?
can we edit records from repeater control
1.what is the application pool. 2.what is the HttpModile and Http Handler. 3.C# 3.0 Features ? 4.Anonoymous Type,methopd and claas in 3.0? 5.difference between statsic and const ? 6.session vs application 7.state management clint side and server side ? 8.Genric list 9.c# 3.0 vs 3.5
What is asp.net response object?
What is data binding in asp net?
what is diffrent between asp & asp.net