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 |
What does CLR do as soon as an assembly is created ?
What is associationset? : Entity framework
How the ‘page lifecycle’ of ASP.Net MVC does works?
reading doc file in textbox using .net2005 with c#
How to bind table coloum with gridview column
3 Answers Sypher Technologies,
What are the levels at which filters can be applied in an asp.net mvc application?
Why to use Html.Partial in ASP.Net MVC?
How large is the .net framework 3.0?
List the new features added in .net framework 4.0.
How route table is created in ASP.NET MVC?
What are the versions of .net framework?
mention in what all scenarios entity framework can be applicable?