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 Posted / 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 View All Answers
is it possible to desable particular parameter of the normal orcle report based on some condition ?????? if yes,wht is the function for desabling a parameter...
kindly send interview materials
Difference between debugging, running, executing of an application
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.
what is difference between kpo and it industry? that is in terms of work, package etc
what is the difference between an OS(operating system) and Framework?
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
What is the first message line that any language learning prints on the screen? and why?
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.
< No Frames > tag is used for
Given: coordinates of rectangle-> left bottom and right top points. the rectangles create a hole.Find the maximum area of the hole. eg. 4 rectangles create a hole in between. find its area.
What for decision coverage and modified condition decision coverage are used? Wat is the difference between them?
smal talk is pure object oriented or not?
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
Which language they use during interview?