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


How do you do role based security ?



How do you do role based security ?..

Answer / narayansahu

1.Create a principle object which contains users identity
(login name) and array of roles
2.and pass this object to HttpContext.Current.User
3.The roles supplied to this object will be checked against
roles specified in the web.config file,if they matched then
they are allowed access to the page otherwise not.

allowed roles can be specified like this in web.config
<authorization>
<allow roles="Administrator,CanEdit"/>
<deny users="*" />
</authorization>

Is This Answer Correct ?    17 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

What are the 3 main components of an asp.net mvc application?

0 Answers  


VIEWS WITH SYNTAX AND EXAMPLE IN SQL

1 Answers  


What are differences between entity framework and l2s? : Entity framework

0 Answers  


How do you register the dotnet component or assembly ?

1 Answers   Accenture, BirlaSoft,


What is the domain object?

0 Answers  


Why to use Html.Partial in ASP.Net MVC?

0 Answers  


If I have multiple filters implemented, what is the order in which these filters get executed?

0 Answers  


creating crystal reports in asp.net & vb.net

1 Answers  


What is the .net framework 3.0 (formerly winfx)?

0 Answers  


Features in .net framework 1.1 ?

1 Answers   Digital GlobalSoft,


What is the advantage of mvc?

0 Answers  


What are Satellite Assemblies? How you will create this?

4 Answers  


Categories