ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories >> Software >> Microsoft-Related >> ASP.NET
 
 
 
Question
What is role manager work in web.config?

how to restrict perticular pages from the users using the
role manager?
 Question Submitted By :: Sharifuddin
I also faced this Question!!     Rank Answer Posted By  
 
Answer
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>
 
0
Nisarg Shah
 
View All Answers
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com