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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  Programming Languages AllOther
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
I've an application where i need to give access to all the 
features only to admin and only few features to normal 
users. Say Menu...i dont want all my menu items to be 
accessible to all the users only the admin people can see 
few all the features where as normal users can have access 
to limited menu items...how can i achieve this. Please note 
that my menu is not a database driven menu.
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I've an application where i need to give access to all the features only to admin and only few features to normal users. Say Menu...i dont want all my menu items to be accessible to all the users only the admin people can see few all the features where as normal users can have access to limited menu items...how can i achieve this. Please note that my menu is not a database driven menu.
Answer
# 1
You can use Session Variable to store the credentials who 
is logging in and after logging in load each menus by 
checking with the session, if it is Admin then this menu 
will come otherwise this menu will come.
Somethig Like:
if(Session["User"].ToString() =="Admin")
{
load the admin menu.
}
else
{
load the user menu.
}
 
Is This Answer Correct ?    0 Yes 0 No
Abhinaw Kaushik
 

 
 
 
Other Programming Languages AllOther Interview Questions
 
  Question Asked @ Answers
 
What is nocopy in plsql? IBA-Health1
What is the GAC? What problem does it solve?  2
Urgent Openings for Java and .NET ( India, Singapore, Australia, Japan) CTS2
Write a program to implement BFS/ DFS routine in a connected graph  1
Diff between Proc transpose and Arrays with example? Accenture1
why Java is not purely object oriented? Persistent7
design a counter with the following repeated binary sequence: 0, 1, 2, 3, 4, 5, 6, 7, 8 using JK Flip Flop. Nortech3
What is meant byStatic Variable ? Mascot4
Which tag is used to create the frame  1
What is the best action a system can take when deadlock is detected  1
converting 41.685 to binary Hughes1
what is the purpose of postback? Nth-Solution2
Artficial language is provided which of the language? Geometric-Software2
explain how to make a control visible and invisible during runtime  1
whats the use of following Good Coding Practices?  2
How to swap values between two variables without using a third variable? TCS10
needs examples for black box testing and white box testing  1
When we have more than one main function in a program how does the compiler know the starting point of the program, i mean from which main the execution or compilation of the program begins? 247Customer1
why should i hire u Satyam12
How to call static method in Java? Epoch2
 
For more Programming Languages AllOther 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