QueryString
is a NameValueCollection
, therefore duplicate key values are concatenated as comma separated list (from the Add method):
If the specified key already exists in the target NameValueCollection instance, the specified value is added to the existing comma-separated list of values in the form "value1,value2,value3".
You can use GetValues
to retrieve a string()
for a given key:
Dim childAges As String() = Request.QueryString.GetValues("ChildAge");