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.



I've an application where i need to give access to all the features only to admin and only fe..

Answer / abhinaw kaushik

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 ?    2 Yes 1 No

Post New Answer

More Programming Languages AllOther Interview Questions

what are the things i had to say in personal introduction in hr round mail me to prasanna.1867@rediff.com

0 Answers  


without selecting individually each field in Action Class from jsp,what is the best process to select as many as field at a time automatically from jsp page by using value object class.

0 Answers  


Who is providing best mainframes online training in Hyderabad

1 Answers  


what are the top level class of interface in java?

2 Answers   Satyam,


Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?

0 Answers  






Write a program to create a process in UNIX

0 Answers  


it is a language or tools?

0 Answers  


Tips for blog integration by www.esteemwebsolutions.com. Can Any body suggest me to how to make wonderful questions on web integration..

0 Answers  


What is the difference between: x=a+b+c+d; and x=SUM(a,b,c,d);?sas

5 Answers  


iam confused among testing ,.net and java. can anybody help me.

0 Answers  


can anyone please tell me the procedure for the NIC personal interview as i have been selected for the post of scientist/technical assistant B

2 Answers   NIC,


Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number

0 Answers   Amazon,


Categories