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 / 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 |
Explain what is OOPS and its concepts?
How can you incorporate a Datawindow to a Oracle8i stored procedure?
Is buffer size and file block size is similar? If similar,at which case it will be same size?
How to call static method in Java?
What is diffrent between Method and and function in c#
Given an array of size n. It contains numbers in the range 1 to n. Find the numbers which aren?t present.
1. What coding languages are you comfortable with?
How you ll create customizing Tcode.
What is the difference b/w Object base and object oriented programming?
what is the difference between SCAN AND CHECK,LOKUP AND XFOOT? where we can use thease opcodes? Can any body tell me real time senariao with example?
i am exeprienced person what is selection process
Which tag is used to break a line