Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

asp.net menu with role-based sub-menus

Avatar of redmission
redmissionFlag for United States of America asked on
.NET ProgrammingASP.NET
3 Comments1 Solution2634 ViewsLast Modified:
Right now, I have an ASP.NET 2.0 menu control that has a datasource that's an XML file.  The menu has items like "Accounting", "Management", "Direct Mail".   Under each of these is a pop-up drop-down menu.

Here's what I need:  If a user is logged and has a session variable "Accounting" set to true, display the Accounting sub-menu.  If they have the session variable "Management" set to true, display the "Management" menu.  A user may belong to multiple roles (about 5 of them), so we must check for all of them.

What's the best way to approach this?  I don't want to create XML files for all of the possible combinations.  I just want to display/hide certain submenus when needed.
ASKER CERTIFIED SOLUTION
Avatar of bedanand
bedanandFlag of Nepal image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers