multidimensional array - can vb.net read query strings with field[] format? -


i'm trying navigate through not being able read multidimensional arrays javascriptserializer.

i think there's workaround if can what's in answer https://stackoverflow.com/a/9547490/1382306

basically, if can store json arrays in each field[] , loop through field, should no problem.

how loop through field if it's in query string of format

?field[]=["a","b","c"]&field[]=["d","e","f"] 

try

request.querystring ["field[]"][0] 

... return:

["a","b","c"]        {in quotes} 

and

request.querystring ["field[]"][1] 

... return:

["d","e","f"] 

you have strip off square brackets , use split () on commas.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -