Hi guys,
probably I am making a crude mistake here, but I do not see what...
Maybe many eyes can help...
I pass a IDictionary<string, IList<Category>> Categories to the view
(brail).
and iterate it like that:
<select name="categoryId">
<option value="0">-</option>
<% for key in viewData.Categories.Keys: %>
<optgroup label="${key}">
<% for c in viewData.Categories[key]: %>
<option
value="${c.Id}">!{c.CategoryValue}</option>
<% end %>
</optgroup>
<% end %>
</select>
this throws a
Unable to cast object of type
'System.Collections.Generic.SortedDictionary`2[System
.String,System.Collections.Generic.IList`1[Category]]' to type
'System.Collections
.IList'.
No idea what is going on...
If I take out the part, that tries to accress the collection, I get a good
result (in terms of it does not throw and shows the keys), but as soon as I
try to access the Dict's values, I am foobard.
Any idea?
--
Jan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---