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 |
Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?
swap two number wthout using third variable
Java is called as pure objerct oriented programming language, where as c++ is not completely object oriented.can any explain the detailed differenec between these two
5.Call by value and Call by reference with program?
plz send me NIC Scientific Officer /Engineer-SB(Programmer) previous question paper or syllabus
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
Which of the following are Java modifiers?
iam confused to choose among testing, .net and java can anybody help me????????
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
What is the meaning of client-server application. The purpose of Client-Server Application. with description.
sample code for data transfer between two r/2 systems and r/3 systems?
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.