Solved

help needed with a lookup table of some sort

Posted on 2006-11-15
1
214 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

778 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