Solved

NameValueCollection

Posted on 2006-11-16
5
226 Views
Last Modified: 2007-01-01
Hi experts,

How to check if a given key is existed in a NameValueCollection or not?

Thanks!
0
Comment
Question by:kennysflau
5 Comments
 
LVL 6

Accepted Solution

by:
manch earned 63 total points
ID: 17954601

Dim obj as Collection
Dim found as boolean = false

obj = New Collection

found = obj.Contains("KeyUWant to Check")
0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 62 total points
ID: 17954786
Dim c as NameValueCollection
Dim key as String
...

if ( not c(key) is nothing ) then
    ' key exists
end if
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

947 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

20 Experts available now in Live!

Get 1:1 Help Now