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 is MetadData?. What is CTS? Type of Join in SQL Server? What is diffrence between Primary Key and Unique Key?
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?
What does assemblyinfo.cs file consists of ?
1 Answers Accenture, BirlaSoft,
What are the options can be configured in AJAX helpers?
What you mean by routing in mvc?
What is GUID , why we use it and where
What is the use of JIT
what is connection pooling
How to use Jquery Plugins in ASP.Net MVC validation?
what are the aggregate functions in ASP.NET?
What are bundling & minification features in asp.net mvc 4?
How to Create an Intranet Site Using ASP.NET MVC?