Retrieving arrays of values from the querystring?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In PHP if the querystring contains an array of parameters (e.g.,
param[0]=value1&param[1]=value2&param[2]=value3) then it is easy to retrieve
this and reference it as an array

$params = $_GET["param"];

echo $params[0]; //outputs value1
echo $params[1]; //outputs value2

My question is, is there an easy way to get this in C# ? Or do I have to
enumerate the querystring and check every parameter to see if it contains
name[int] and if so, build up my own array?
 
Back
Top