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
iam confused to choose among testing, .net and java can anybody help me????????
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there
9.Difference between even and odd signals?explain with the diagram?
what is technical system, business system, logical system in sap pi7.0
Tell me the jobs for the MCA Fresher in delhi, Noida..
In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..
3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....
what are the missinschema properties and should we pass primary key in select command
what will we require to build project with the help of oracle
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
what is the extension of SPDS Dynamic cluster tables?
how to check single or double byte in struts
what is the purpose of checked Menu options