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


Please Help Members By Posting Answers For Below Questions

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

1628


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1541


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?

1512


How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

1568


9.Difference between even and odd signals?explain with the diagram?

2968






what is technical system, business system, logical system in sap pi7.0

2132


Tell me the jobs for the MCA Fresher in delhi, Noida..

1903


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..

995


3 members in a pf.how we read 3 members without using ovrdbf.using rg pgms....

1674


what are the missinschema properties and should we pass primary key in select command

1422


what will we require to build project with the help of oracle

1390


In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

1614


what is the extension of SPDS Dynamic cluster tables?

1626


how to check single or double byte in struts

1567


what is the purpose of checked Menu options

1986