views:

265

answers:

2

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
A: 

If the collection implements IEnumerable you can use a foreach, otherwise use a for loop with the .Length of the collection.

rball