0
<input type=hidden name='field[size][large]' value='40' />
<input type=hidden name='field[size][medium]' value='32' />
<input type=hidden name='field[size][small]' value='12' />

<input type=hidden name='field[color][green]' value='22' />
<input type=hidden name='field[color][blue]' value='30' /> 

l have a form like this how ever l can access values using Reuest.Form.GetValues("");

but what am not quit sure is how to get values like in the form above were the input name for example is field[size][large]

i tried using some example here but am not getting the values if l do a loop on all form values l can see the values such as

    foreach (string key in Request.Form)
                    { 
                        sbError.Append("<br>Key : " + key + "=" + Request.Form[key]);
                        // Do something with (name, value).
// using this will output all form values but l want specifically for field[xxx][xxx] not all
                    }

.it will output the value . my question is how can l get all values in the of the field[xxx][xxx] or loop through them

UPDATE :

am using angular to create the html input values for

field['am-created-by-angular']['created-by-angular']

so getting values based on field and loop through it and get the values .

l don't know values created by the user on client side using angular , but however there will be alphanumeric l simply have to capture values

2
  • Request.Form["field[size][large]"]? Commented Oct 10, 2018 at 9:04
  • @CodeCaster l have updated the question Commented Oct 10, 2018 at 9:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.