In my ASP.NET MVC project, I have a multicolored collection that I want to render - say, a
IEnumerable
; ISomething & gt; where different items can be a mix of different implementations of the ISomething
.
I was given the list, where every solid type is rendered according to your template (perhaps a strongly typed viewer control).
In WPF, I will be able to specify a data template that will automatically wrap the concrete type for specific templates. Can I do something like this in ASP.NET MVC?
Obviously, I work again through the list and I can try an artist using the keyword
and then lots of if statement is for submission to the desired control, but I was hoping for something more elegant (like WPF).
I ended up with developing a solution - I have told about it.
Comments
Post a Comment