Hi there:
I wonder, is there an equivalent of the Monorail View components for Asp.Net MVC?
What I m trying to do is render some complex UI that depends on a class, so say we are in a List view, I want to pass an object to this ViewComponent equivalent and that it will take the object as a parameter and render the complex UI for me allowing me to do other stuff in the view. What would be the best way to do that in Asp.Net MVC?
Since this is a complex UI I would prefer to write it once, hence templates are not really the way I would like to go, as it will mean I ll have maintainability issues.
Some options I saw ( and I m about to start trying) are:
- Html.RenderAction in the futures
- Subcontroller
However I d like to know if there is anything else or if one is better than the other for this particular scenario