Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

along with oracle which language will be beneficial to have knowledge with,java,.net,since i m doing oracle have appeared for 8th sem BEIT,plz suggest

1859


in a VB application, where the data will be stored after manipulation? what is the syntax for that?

2220


code for connection from windows forms to sql server

2172


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.

926


Which CRM is better to opt, Sebiel CRM or Salesforce CRM or sap CRM? which institute is best one in hyderabad

2246


Why did you ever become involved in QA/testing?

1985


How do you pass variables forwrd to future CECI sessions

4453


What are the tasks performed by a Team Lead

2789


Find out the list of roles which gives access to GUI activities? thanks in advance

2092


what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?

1921


what is the difference between rename and label

2300


How to set fixed width in particular in html? if i type more character in this it will not push near . this is my question. can u tell me the answer...

2505


In OB52 , How to define two open posting period, Like only 5 and 8 posting should be open.. should not open 6 and 7..period..

1415


Can we write a method in JSP.If so how?

1959


what will we require to build project with the help of oracle

1785