I'm trying to iterate over an unknown number of query values in C#... and can't find anything unrelated to LINQ, which I can't use. Anyone have any ideas?
+1
A:
If this question is about getting a querystring in ASP.NET, I think the link you are searching for is:
http://msdn.microsoft.com/en-us/library/system.web.httprequest.querystring.aspx
Essentially, Request.QueryString
gives you a collection that you can then iterate over.
Sean
2009-05-29 21:35:07
A:
If the collection implements IEnumerable you can use a foreach, otherwise use a for loop with the .Length of the collection.
rball
2009-05-29 21:39:43