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

why we use new keyword for object

4 Answers   TCS,


if 2 is passed as an argument to the method,void GC.Collect then what would be the result?

0 Answers  


What do you mean by an array ? explain with an example

7 Answers  


Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.

0 Answers   Amazon,


what is the extension of SPDS Dynamic cluster tables?

0 Answers   IBM,






What is the difference between an EXE and a DLL?

3 Answers   ABC, Hykin Solutions, Infoedge, Infosys, Polaris,


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

0 Answers  


Data structure used to impliment a menu:

0 Answers   Verifone,


Define Form modules, Class modules and Standard modules

0 Answers   Global Hunt,


how can i create report in abap to insert data in table pa0002 using insert command

0 Answers  


What is the difference between WebIntelligence and Designer in creating universes?

0 Answers  


1.Mutating table

0 Answers  


Categories