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 |
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
sample code for data transfer between two r/2 systems and r/3 systems?
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
What is Boxing?
How to link calculator in oops concept? how is it working in oops concept? why dont u using in beginning of program 'z' in abap(sap)?
what is class module in vb6? what it's use? with example..
Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)
which of the following is efficient in terms of space a. insertion sort b. quick sort c. selection d. both a and c
HOW TO DOWNLOAD ORCUT SITE VIDEOS IN PC WITH THE HELP OF MOZILL'S FIREFOX?
i need informatica certification dumps(S-powercenter 8 mapping designer)......plz fwd it to my mail id:gaya1989@yahoo.com
I m Abdullah Ansari compleated MCA from Jamia Hamdard,i have appeared the test of IBM on 2 august at oxford college of engineering Bangalore.waiting for hr round.. This is the first round for IBM.02/08/08 Paper consists of 4 sections 15 questions from matrices(time very less but no negative marking). 25 questions from series completion section (this section is very easy but negative marking) 15 questions from aptitude(little bit tough time limit 15 minute negative marking) 4th section is from computer science (c,c++,operating system,digital electronics ,basic question..) result came at 3 o'clock.i was selected... In interview they asked questions like 1 they asked about final yr project.. 2 what are dynamic and static memory location? 3 linked list and array difference between them. 4 what is function ? what is difference betwen function and inline function? 5 about structure 6 about binary tree, traversal, call by value. 7 storage class and many more basic questions..
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END