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
along with oracle which language will be beneficial to have knowledge with,java,.net,since i m doing oracle have appeared for 8th sem BEIT,plz suggest
in a VB application, where the data will be stored after manipulation? what is the syntax for that?
code for connection from windows forms to sql server
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.
Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad
Why did you ever become involved in QA/testing?
How do you pass variables forwrd to future CECI sessions
What are the tasks performed by a Team Lead
Find out the list of roles which gives access to GUI activities? thanks in advance
what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?
what is the difference between rename and label
How to set fixed width in particular
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..
Can we write a method in JSP.If so how?
what will we require to build project with the help of oracle