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 asp.net web application?

1025


Write code to send e-mail from an asp.net application?

1013


What is the difference between a cookie and a pixel?

917


Is it possible to write code in many languages in one asp.net project?

1008


What is the use of session in web application?

938


Describe paging in asp.net?

1138


What is ispostback property?

905


Why do we use asp.net?

1023


How to reduce the width of textbox in editcommandcolumn of datagrid?

986


What are the types of authentication in asp.net?

1000


To get the values in two different controls to match which control you use it?

1031


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

2122


What is ashx file in asp.net?

1044


Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?

2453


Define authentication and authorization.

1065