ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  Dot Net  >>  Dot Net Framework
 
 


 

 
 Dot Net Framework interview questions  Dot Net Framework Interview Questions
 Dot Net Remoting interview questions  Dot Net Remoting Interview Questions
 Dot Net WindowsForms interview questions  Dot Net WindowsForms Interview Questions
 Dot Net General interview questions  Dot Net General Interview Questions
 Dot Net AllOther interview questions  Dot Net AllOther Interview Questions
Question
How do you do role based security ?
 Question Submitted By :: Pranab Mukherjee
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you do role based security ?
Answer
# 1
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 ?    8 Yes 0 No
Narayansahu
 

 
 
 
Other Dot Net Framework Interview Questions
 
  Question Asked @ Answers
 
What is strong name?  4
What is the use of trace utility ?  1
If you are using components in your application, how can you handle exceptions raised in a component ? Accenture3
please tell me the best book of asp.net in the markit. which explain in simple and detail.  2
What is Partial Assembly References? Microsoft2
IS MS.Net platform independent or dependent? Ksb10
I have a GridView on web form, and a column in a grid is a linkbutton to open popup..., my problem is when i click on link button in a gridview popup opens as well works fine. but when i click on link button once again my popup window doesnt open. Can any one help please...  1
How does assembly versioning work?  1
How to add 'ASPNET.mdf' file into server explorer in visual studio 2005?  2
What is serialization ? MMTS4
How do you do role based security ? Accenture1
What are the features that are new in .net 2.0 Emphasis2
How could we achieve Langauge Interoperability through "CLS"?? Please Expalin in detail with Example.. Thanks for the Help!!!!! HCL2
how to maintain the session state? what is Abstract class and interface and inheritence with example?  2
About .NET Framework ? MMTS4
exe abrevatiom IBM4
Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?  1
What is the difference between managed and unmanaged code? IBM5
reading doc file in textbox using .net2005 with c#  3
what are the different stepts to create shared assemblies?  1
 
For more Dot Net Framework Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com