Solved

help needed with a lookup table of some sort

Posted on 2006-11-15
1
231 Views
Last Modified: 2010-04-23
Hi

I am making a menu in asp.net but the area i need help on is a vb.net issue

I have a menu with 5 tabs. Each tab has a selected and unselected state. Each menu items refers to multiple web pages. For exxample, the menu item My Account is selected when the user is on various pages such as "Edit details", "show my details" and so

I want to create a look up table for the tabs and the webpages they correspond to. Specifically, i will get the name of the webpage the user is looking at. I will look this name up in some sort of look up table (advice need on what to use please). The look up table will return me the name of the tab. I will then set the image for this tab to be the selected image.

What kind of vb.net look up feature will let me store multiple values indexed by a string key?

thanks
andrea
0
Comment
Question by:andieje
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 48

Accepted Solution

by:
AlexFM earned 500 total points
ID: 17947682
You can create the following generic type:

Dictionary(Of String, List Of AnyOtherType)

This type allows to keep list of any types (like Tab pages) for string key.

You can use also Wintellect Power Collections library which contains MultiDictionary class.  Wintellect Power Collections is free and can be downloaded from here:
http://www.wintellect.com/PowerCollections.aspx

I guess it is written in C#, but can be used in any .NET language.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question