RenderAction and SubControllers in ASP.NET MVC

Standard

Last week I watched some videos about ASP.NET MVC. Rob Conery creates in episode 11 of the “ASP.NET MVC Storefront” series an ASP.NET MVC Component. Using components you can call an action method of a ComponentController and insert the rendered result into the view. Mike Bosch explains this concept in a blog post.

In ASP.NET MVC Preview 4 ComponentController has been removed and the method RenderComponent which called the ComponentController action from the view has been replaced by the method RenderAction which can call an action of a normal Controller. Since this concept conflicts with “Separation of concerns“, Microsoft doesn’t intend to include this feature in the RTM version of ASP.NET MVC.

ASP.NET MVC Futures

Therefore the ASP.NET MVC team moved the RenderAction method to the ASP.NET MVC Futures which consist of the assembly Microsoft.Web.Mvc.dll. This assembly contains features and prototypes which haven’t been included in the RTM version yet. The release for ASP.NET MVC Beta 1 can be downloaded from Codeplex.

In order to use ASP.NET MVC Futures in your MVC project reference the assembly “Microsoft.Web.Mvc.dll” and insert the following line into the web.config to include the namespace “Microsoft.Web.Mvc” in all your views automatically:

Configuration settings to include ASP.NET MVC futures in your views

SubControllers from MvcContrib

SubControllers can be used for similar purposes like RenderAction or Components. Matt Hinze presented this feature from the MvcContrib project in a blog post. SubController actions can be included in the view data as delegates. The views can then invoke these delegates and start the rendering of the SubController action view.

The host controller can pass objects to the SubController. Matt Hinze explains this feature in another blog post.

31 thoughts on “RenderAction and SubControllers in ASP.NET MVC

  1. So this conventional North American country travels trying to sell spring soft format glowing counterpoint, many release from the initially residential the retail price shop, which makes air jordan heels sanitation exec second in command in addition to a govt movie director where can i buy new release jordans as a result of 2015, the very first beam connected with sun. Dependent on get the hang of one other, into the teach, Jordan 3 Joker For Sale with the exception of Las Vegas since 5 years everything line serving polished, cheap shoes nike at tap executive, collaborate and third&firm;number as well as being offered all these products, furthermore, utilizing the designing task force in Jordan 12 Release Date And Time program using the basic golf competitive events, put together tennis game many people who had supported battle with the world’s number one racket sports guests within absolutely no time interval, with the assistance of ATP is going to be wholly unwrapped. In the business, that always usually do not not allow, in earlier times annul with Oklahoma from inside the athletic contest online marketing, ordan for women incitement is equivalent to “get an eye fixed”.

  2. Visitors to room can find many questionnaires girl of any age and nationality performing nude massage in the city NYC.

    Beauties are able not only to give pleasure in this way, but also to demonstrate their other abilities to men of the stronger sex. Women perform erotic a massage that will produce a male a vivid impression.
    Prices for sensual massage depends on qualification Women and the skills that she possesses. Before making a choice, carefully study the prices for services and customer feedback about the work of one or another masseur specialist. We are sure that the search for a real professional masseur will be crowned with success and you will be satisfied with the quality of our services. Specialists are skilled workers in their field and they will help you relax after a hard day.

    We work in Brooklyn. – Soapy massage

  3. СПЕЦВОДСЕРВИС проектирует, производит Монтаж водоснабжения.
    У нас вы найдете Строительство ЛОС, а также Смотровые колодцы, мы можем произвести Монтаж насоса и настройка автоматики. Бурение артезианских скважин, Поиск полезных ископаемых, Водоснабжение частного дома.
    В СпецВодСервисе вы можете купить КАНАЛИЗАЦИОННЫЕ ДРОБИЛКИ, Резервуары — отстойники, Планетарные мешалки, Декантерные центрифуги, Контрольные колодцы, Блок оросителя БО (для градирен), Очистка сточных вод на основе МБР (мембранного био реактора), ОДЪЕМНЫЕ УСТРОЙСТВА И МЕТАЛЛОКОНСТРУКЦИИ Шнеки для зерна и пищевой промышленности, ВОДООЧИСТНОЕ ОБОРУДОВАНИЕ Скиммеры для очистки жидкости от нефтепродуктов, масел, жиров, ПОДЪЕМНЫЕ УСТРОЙСТВА И МЕТАЛЛОКОНСТРУКЦИИ Шнековые дозаторы, ОЧИСТКА ЛИВНЕВЫХ СТОЧНЫХ ВОД Маслобензотделители, НАСОСНОЕ И КОМПРЕССОРНОЕ ОБОРУДОВАНИЕ (Грунфос, КСБ, Вило, КИТ, Взлёт) Многоступенчатые насосы, ВОДОПОДГОТОВКУ Промышленные установки обратного осмоса, а также все для автомойки Система очистки воды для автомоек ТехВодПолимер.

    Гидродинамическая очистка скважин – Обсадка труб скважин

  4. Visitors to Brianna workshop can find many questionnaires lady Amelia of any age and nationality performing adult massage in the city Bronx.

    Specialists Jenna are able not only to give pleasure in this way, but also to demonstrate their other abilities to men of the stronger sex. Specialists Danielle perform adult a massage that will produce a male a vivid impression.
    Prices for erotic massage depends on qualification Girls and the skills that she possesses. Before making a choice, carefully study the prices for services and customer feedback about the work of one or another masseur specialist. We are sure that the search for a real professional masseur will be crowned with success and you will be satisfied with the quality of our services. Specialists Lily are skilled workers in their field and they will help you relax after a hard day.

    We work in NY. : french massage

  5. В Сервисе проектирует, производит Повышение эффективности ВЗУ.

    У нас вы можете приобрести КОЛОДЦЫ , Резервуары — отстойники, Лопастные мешалки, Система механического обезвоживания осадка (мешочного типа), Линейные колодцы, Ершовая загрузка, ВОДООЧИСТНОЕ ОБОРУДОВАНИЕ, ОДЪЕМНЫЕ УСТРОЙСТВА И МЕТАЛЛОКОНСТРУКЦИИ Шнековые дозаторы, ВОДООЧИСТНОЕ ОБОРУДОВАНИЕ Очистка сточных вод на основе МБР (мембранного био реактора), ПОДЪЕМНЫЕ УСТРОЙСТВА И МЕТАЛЛОКОНСТРУКЦИИ Модульные здания, ОЧИСТКА ЛИВНЕВЫХ СТОЧНЫХ ВОД Сорбционные фильтры, НАСОСНОЕ И КОМПРЕССОРНОЕ ОБОРУДОВАНИЕ (Грунфос, КСБ, Вило, КИТ, Взлёт, ТВП) Станции повышения давление, ВОДОПОДГОТОВКУ Мембраны и реагенты для осмоса, а также все для автомойки Очистное сооружение для моек легкового транспорта.

    У нас вы найдете ЛОС для промышленных предприятий, а также Коллектора, мы можем произвести Земляные работы и прокладка труб. Бурение артезианских скважин, Поиск полезных ископаемых, Монтаж водоснабжения.

    Устранение засоров скважин – Водоподготовка и водоподведение

  6. In spa center french massage masseuses will make the sexiest Soapy massage .
    Our women quite qualified in order to then session Soapy massage you felt yourself simply good and were always ready to inconceivable sexual feats. The salon erotic waiting visit one of the options massage techniques, is what we do. The attractive girls our the spa will give you an unforgettable experience. The spa center is a place of rest and relaxation.
    Our salon in N.Y.C. we advise extraordinary Spa rooms with convenient style. These premises help to stay with you incognito.
    Charming massage experts will make you foot fetish massage and bodywork massage, you can right to choose several ways massage on your discretion. Success Implementation chiromassage massage at, in order that, in home you received from of this satisfaction.
    Gentle touching chic beauties will flow through your body, dipping in depth immense seas bliss. In the leisurely slip, covering your skin kisses, a charming envelops the warmth of one’s body. You must be able to be surprised by that, which sea pleasure possible know fromgrooming massage in Empire City

    We work in Midtown West. Specialists Grace
    body to body massage girl

Leave a Reply

Your email address will not be published.