Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is role manager work in web.config? how to restrict
perticular pages from the users using the role manager?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between union and join?

1271


What is viewstate parameter?

998


What is query string with example?

1016


How to improve performance of web application asp.net mvc? : Asp.Net MVC

1067


Which two new properties are added in asp.net 4.0 page class?

968


What are session cookies?

1061


Explain code snippet to register exception filters from controller?

1042


How do I open an ashx file in windows 7?

1116


What is asp net_sessionid?

1145


If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?

2531


What is cross page posting in asp net?

1017


What is ispostback property?

979


What is a server cookie?

1056


What is http only cookie?

1189


Where would you use an ihttpmodule, and what are the limitations of any?

1054