Retrieving arrays of values from the querystring?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top