How do you do role based security ?
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 |
Is any files are generated,when we are adding the web reference to the web service?
exe abrevatiom
why DotNetFramework is included in building a software
How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!!
Explain tempdata in asp.net mvc?
Is it possible to use multipe inheritance in .net
What is partialview in asp.net mvc?
Explain what is the difference between view and partial view?
Which is the best institute in chennai to learn DotNet?
What are the main components of .net framework?
What are Code Blocks in Views?
What is serialization in .NET? What are the ways to control serialization?