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


Please Help Members By Posting Answers For Below Questions

What is odata in web api?

1133


What are the differences between primary foreign and unique keys?

1129


Describe the events in the life cycle of a web application.

1161


How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?

2963


What is Bundling and Minification in MVC?

1073


What are themes and skins in 2.0, explain usage scenario?

994


What is the use of the tag in the web.config file?

1020


What is http protocol and how it works?

1104


What is the difference between a multi-layer and multi-tier applications?

1060


how to write html code with ssl

2166


What are the versions of garbage collection?

1953


Define tracing.

1171


what are the security certificates used in webservices?

2066


How long the items in ViewState exists?

1491


What is in a session cookie?

1011