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 |
why we use new keyword for object
if 2 is passed as an argument to the method,void GC.Collect then what would be the result?
What do you mean by an array ? explain with an example
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.
what is the extension of SPDS Dynamic cluster tables?
What is the difference between an EXE and a DLL?
3 Answers ABC, Hykin Solutions, Infoedge, Infosys, Polaris,
iam confused among testing ,.net and java. can anybody help me.
Data structure used to impliment a menu:
Define Form modules, Class modules and Standard modules
how can i create report in abap to insert data in table pa0002 using insert command
What is the difference between WebIntelligence and Designer in creating universes?
1.Mutating table