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

Is any files are generated,when we are adding the web reference to the web service?

2 Answers  


exe abrevatiom

5 Answers   IBM,


why DotNetFramework is included in building a software

0 Answers   Infosys, Symphony,


How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!!

2 Answers   HCL,


Explain tempdata in asp.net mvc?

0 Answers  


Is it possible to use multipe inheritance in .net

1 Answers  


What is partialview in asp.net mvc?

0 Answers  


Explain what is the difference between view and partial view?

0 Answers  


Which is the best institute in chennai to learn DotNet?

7 Answers  


What are the main components of .net framework?

0 Answers  


What are Code Blocks in Views?

0 Answers  


What is serialization in .NET? What are the ways to control serialization?

2 Answers  


Categories