Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

putting a string in NameValueCollection

Status
Not open for further replies.

developer155

Programmer
Jan 21, 2004
512
0
0
US
Hi, I have a console C# .NET 2.0 app and it gets a query string as an input and I need to put that query string into some kind of a collection where I can use name/value.
NameValueCollection looks like it woudl do the job but how can I load a string into it? HttpUtility.ParseQueryString does not seem to exist in console app

thanks!!
 
You may also consider a Dictionary, since it could be strongly typed to strings, you wouldn't have to worry about conversion. 2.0 should have this as a native type. (Templated Dictionary, I think)

Good luck
-Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top