title: Binding form with dynamic element names to a model class in MVC c#
body: <p>I was trying to bind the post-data of this form to a MVC model class,</p>
  
  <pre><code>&lt;form&gt;
    &lt;div criteriaid=”59”&gt;
      &lt;input type="hidden" value="FRON 01" name="criteriaProduct[59]"&gt;
      &lt;input type="hidden" value="FRON 02" name="criteriaProduct[59]"&gt;  
      &lt;input type="hidden" value="FRON 04" name="criteriaProduct[59]"&gt;
    &lt;div&gt;
  
    &lt;div criteriaid=”60”&gt;
      &lt;input type="hidden" value="FRON 02" name="criteriaProduct[60]"&gt;
      &lt;input type="hidden" value="FRON 01" name="criteriaProduct[60]"&gt;  
      &lt;input type="hidden" value="FRON 04" name="criteriaProduct[60]"&gt;
    &lt;div&gt;
  
    &lt;div criteriaid=”61”&gt;
      &lt;input type="hidden" value="FRON 05" name="criteriaProduct[61]"&gt;
      &lt;input type="hidden" value="FRON 06" name="criteriaProduct[61]"&gt;  
      &lt;input type="hidden" value="FRON 01" name="criteriaProduct[61]"&gt;
    &lt;div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The problem is the criteria id is dynamic and the products has to be grouped by criteria Id.
  I tried </p>
  
  <pre><code>Class
  {
      public string[][] criteriaProduct { get; set; }  // not working
      public string[] criteriaProduct { get; set; } // not working
  }
  </code></pre>
  
  <p>Any one can help? Thanks
  I know this array name is ok in PHP, but c# ?</p>