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

Explain the role of global.asax?

986


How to disable validator control by client side JavaScript?

1050


Mention the execution process for managed code?

982


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

998


In which event of page cycle is the viewstate available?

1012


Explain what are webservices?

972


What can you do with asp.net?

923


Where do we store our connection string in asp.net application?

1016


What is the behavior of a Web browser when it receives an invalid element?

1109


What are validator? Name the validation controls in asp.net?

1011


What are the advantages of Web API?

1108


What is difference between rest and soap?

1103


How can we register exception filter from the action?

1079


What is meant by asp.net?

974


Differentiate globalization and localization.

1014