Solved

help needed with a lookup table of some sort

Posted on 2006-11-15
1
191 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
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now