What is used of Name Value Collection in ASP.NET?
how it is used in asp.net ?
Thanx
What is used of Name Value Collection in ASP.NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Priya LingeRank #785 · 2.9K reputationPosted Aug 12, 2011, 12:03 AM EDT
NameValueCollection represents a collection of associated String keys and String values that can be accessed
either with the key or with the index.
A NameValueCollection is similar to a .NET Hash Table in that it can store items in key/value pairs and allows you to retrieve items
by specifying either the Key or index.
Example :
Namespace : using System.Collections.Specialized;
NameValueCollection coll = new NameValueCollection();
coll = Request.Form;
here we will get the collection of form variables in coll.
Hope this will help you.
Thanks.
sagar Bhosale162 reputationPosted Aug 12, 2011, 12:51 AM EDT