How can/should I create some "custom control" in ASP.NET MVC 3? I have red about partial views, ViewUsersControl
, Html.RenderAction
, but I still don't know, which way is the proper MVC way for razor views.
If I need to render some ajax component to view, I can imagine to do it by partial view, but what if I want to render section with custom logic?