I'm stuck !!!
Kindly help me out.
I have following view model property in my mvc 2.0 project...
public IDictionary<int, IList<int>> SelectedErrorsErrorType { get; set; }
Basically I have group of checkboxes under one or more tabs. These tabs are like English, German, French etc. etc.. I want to use tabId as dictionary Key and selected checkbox IDs as Dictionary Value (Integer List). I can't seem to bind my model that way. I previously found on stackoverflow that to map to Dictionary Key, we need an hidden field e.g.
<input type="hidden" name="<%: String.Format("SelectedErrorsErrorType[{0}].Key", index) %>"value="<%: item.LanguageId %>" />
That's Fine ! But how do I map Value field against my Key.
Any help would be highly appreciated.
Thanks.