Re: Confused by the NameValueCollection
From: anon (anon_at_hotmail.com)
Date: 05/13/04
- Next message: David Sworder: "Re: Detecting Disconnect on TCP Socket"
- Previous message: Mark Broadbent: "Re: CSV files"
- In reply to: Teemu Keiski: "Re: Confused by the NameValueCollection"
- Next in thread: Bob Powell [MVP]: "Re: Confused by the NameValueCollection"
- Reply: Bob Powell [MVP]: "Re: Confused by the NameValueCollection"
- Reply: Chris R. Timmons: "Re: Confused by the NameValueCollection"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 13 May 2004 11:26:58 -0700
What if the values have a "comma" in them? How is the comma-separated list
going to know where the next "REAL" value is?
"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:eQDbGJOOEHA.2952@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> see the documentaion for NameValueCollection's Add method. It says:
>
> "If the specified key already exists in the target NameValueCollection
> instance, the specified value is added to the existing comma-separated
list
> of values associated with the same key in the target NameValueCollection
> instance."
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
>
> "anon" <anon@hotmail.com> wrote in message
> news:uksCPmMOEHA.892@TK2MSFTNGP09.phx.gbl...
> > I need a little clarity in the NameValueCollection.
> >
> > Within the MSDN .NET 1.1 Framework help is says:
> >
> > "This collection is based on the NameObjectCollectionBase class.
> > However, unlike the
> > NameObjectCollectionBase, this class stores multiple string values
> under
> > a single key."
> >
> >
> >
> > What does this REALLY MEAN?
> >
> > IS THIS CORRECT WAY?
> > EXAMPLE #1
> > Index Key Value
> > 0 a "alpha"
> > 1 b "beta"
> > 2 c "charlie"
> > 3 c "clifford"
> >
> >
> > OR does it mean
> > EXAMPLE #2
> > Index Key Value
> > 0 a "alpha"
> > 1 b "beta"
> > 2 c "charlie", "clifford"
> >
> >
> > see how I am confused?
> >
> >
> >
> >
>
>
- Next message: David Sworder: "Re: Detecting Disconnect on TCP Socket"
- Previous message: Mark Broadbent: "Re: CSV files"
- In reply to: Teemu Keiski: "Re: Confused by the NameValueCollection"
- Next in thread: Bob Powell [MVP]: "Re: Confused by the NameValueCollection"
- Reply: Bob Powell [MVP]: "Re: Confused by the NameValueCollection"
- Reply: Chris R. Timmons: "Re: Confused by the NameValueCollection"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|