0
I have the following properties in a model:
public List<string[]> Imagens { get; set; }
public string[] Video { get; set; }
public string[] Audio { get; set; }
There in my Controller I am checking if the ModelState.isValid
Only I wanted the string array in the image list to be two positions. But I don’t know how to create this. My attempt was to create like this
public List<string[2]> Imagens { get; set; }
But it doesn’t work, and I need the array to have 2 values inside.
How you are sending the array of
Imagens
of yourForm
if you send 2 items that are string array with the name Images is loaded automatically!? What’s at stake now is you put your form and explain what you’re doing. Ah the Controller also!– novic
You want to create a array with two strings or wants a string that has only 2 characters? These characters are in which encoding?
– Maniero