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 the difference between executescalar and executenonquery?

941


How would you create a permanent cookie?

981


What is asp.net web pages?

937


Mention few asp.net validators.

960


What is an axd file?

1022


How do I create a web form?

969


What is an asp.net validator? And, mention its types.

970


What is protected configuration?

1044


What is the exact purpose of http handlers?

966


What is autopostback true?

999


Explain how to prepare culture-specific formatting in .net.

925


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

959


Explain the difference between asp.net mvc and asp.net webforms

1010


What is masterpage?

906


Explain the asp.net session state modes.

1028