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
Colors specified with the notation
hi i am jyoti i have done sap training in sd and master degree in economics have 2 year exp as enduser in (gdms)and 1 year as sd consultant.as contract basis now what i can do for getting job in it industry
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
Is buffer size and file block size is similar? If similar,at which case it will be same size?
In JCl , we have COND parameter.This holds comparison code and condition.It also has only and even parameters. ex: COND((4,GE),EVEN).what the comma mean here. is that 'and' or 'or'.
How do you initialize a static member of a class with return value of some function?
why we use abstract word in abstract window toolkit in java language.
hi viewers, tell me,what is scripting and programming, define and difference...pls
THE CHANNEL IN DATA COMMUNICATION CAN BE?
how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?
what are stubs related to foxpro?
Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
Write a shell program to test whether a given year is leap year or not ?
what are the differences between CONS, LIST, and APPEND