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 |
how many types of bytes are there???
cgi stands for
what will we require to build project with the help of oracle
write a program on c(or)c++(or)java language i.e if i have 5 numbers like (10,24,3,9,15) i want to display highest number from these numbers
write a program for finding the union of two integer array in java?
What is Big-O notation?
When we delete logfiles such as screenshots how does it affect the ldf file? Ive seen huge change while adding screenshots in the ldf file but a very minor one deleting them.Please Explain
There are 2 tables: EMP : EmpId, Ename, Sal, DeptId DEPT : DeptId, Dname Write a query to find out emp names and their department names. if any emp has null in Deptid the it shows ?No Department?. Write a query to find out those department names which has no employee. Write a query to find out those employees whose salary is greater than their department?s average salary.
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 2 numbers. Find the missing numbers.
Why COBOL/400 is giving 95 session error when opening a file even though the file is having key and the screen or display file is having IND ARA defined?
What is the difference b/w Object base and object oriented programming?
Definition of Singleton Class? what is the Purpose of it? what is the advantage?