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.

134 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

  7. Здравствуйте!
    Я зашла на Ваш сайт schlapsi.com, и хочу узнать:
    Вам требуется больше клиентов, для Вашего бизнеса? Хотите ли вы поднять доход?

    Наша компания может предложить Вам:
    1. Провести опрос вашей целевой аудитории. Улучшает результативность любой рекламы как в интернете, так и вне его.
    2. Сделать лендинг пейдж на основе опроса. Что значительно увеличит количество обращений.
    3. Создание нового сайта для вашей кампании, если со старого мало обращений. Или доработать существующий.
    3. Создание интернет магазина
    4. Настройка и ведение Яндекс Директ кампании
    5. Создание и ведение Google AdWords кампании
    6. Настройка и ведение таргетинговтой рекламы Вконтакте
    7. Настройка и ведение таргетинговтой рекламы FaceBook
    8. Продвижение Инстаграмм аккаунта

    Пожалуйста, если Вас интересует что-то из предложенного, напишите мне.
    Если есть еще какие-то пожелания, или Вы хотите что-то узнать – с удовольствием отвечу на любые вопросы.
    promo4site@mail.ru
    С уважением, Юлия.
    Администратор по работе с клиентами

  8. Dressed in a Sail, Sport Royal and Fire Red color scheme. This Air Jordan 3 features a Sail based upper with Grey elephant print overlays. Completing the design are Royal and Red accents throughout and a Jumpman logo on the tongues and heels. Michael Jordan’s signature on the tongue is inspired by a passport.

  9. With havin so much content do you ever run into any problems of plagorism or copyright infringement?
    My website has a lot of unique content I’ve either written myself or outsourced
    but it seems a lot of it is popping it up all over the web
    without my authorization. Do you know any ways to help reduce content from being stolen?
    I’d definitely appreciate it.

  10. Hello my friend! I want to say that this post is amazing,
    great written and include almost all significant infos.
    I’d like to see extra posts like this .

  11. Nice post. I used to be checking constantly this weblog and I’m inspired! Very helpful information specially the ultimate phase 🙂 I deal with such info much. I used to be seeking this particular info for a very long time. Thanks and good luck.

  12. I would like to thank you for the efforts you’ve put in writing this website. I am hoping the same high-grade website post from you in the upcoming as well. Actually your creative writing abilities has inspired me to get my own site now. Actually the blogging is spreading its wings quickly. Your write up is a good example of it.

  13. Hola! I’ve been following your site for some time now and finally got the courage to go ahead and give you a shout out from Atascocita Tx! Just wanted to tell you keep up the great job!

  14. We’re a group of volunteers and opening a new scheme in our community.
    Your website provided us with valuable info to work on. You’ve done an impressive job and our entire community will be grateful to you.

  15. I just could not depart your site before suggesting that I really enjoyed the standard information a person provide for your visitors? Is gonna be back often to check up on new posts

  16. This web page is mostly a walk-by for all of the information you wished about this and didn’t know who to ask. Glimpse right here, and you’ll undoubtedly uncover it.

  17. I like the valuable information you provide in your articles. I will bookmark your blog and check again here regularly. I’m quite sure I will learn many new stuff right here! Best of luck for the next!

  18. The spa salon japanese waiting find out one of the kinds massage, is what we do. What is an Prostate massage interested in everyone. Four hands massage it’s a craftsmanship of giving for bliss. You willsurprised to that,what ocean bliss can experience from adopting massage. In salon of erotic massage cosmetic massage masseurs will make good Taoist Erotic Massage (TEM).

    How is it done, and is there something exotic? We will tell you all about him that you wanted to know |Our Buttock Massage is visited not only by men but also by women, and also by couples. You necessarily want to enjoy only this infinitely … Our main intention this is to please personally you magical sexy massage with jars. Private approach to all yours desires and conditions.

    The beautiful women our the spa center will give you an unforgettable experience. The spa salon is a place of rest and relaxation. Here’s a Aromatherapy, as though, and relaxation, operates on some elements shell, this can help clients become less tense. Choose one or just two beauties! Choose by external data, both professional and professional proficiency!

    Our salon in New York we advise chic placement with convenient design. Data apartment apply to stay with you incognito.

    We have a showroom in Brooklyn. Specialists Kimberly :
    tantric massage spa

  19. I’ve been surfing online greater than three hours lately, but I by no means discovered any interesting article
    like yours. It’s beautiful worth enough for me. Personally, if all web owners
    and bloggers made just right content material as you probably did, the internet will
    probably be much more helpful than ever before.

  20. Good day! This is kind of off topic but I need some advice from an established
    blog. Is it hard to set up your own blog?
    I’m not very techincal but I can figure things out pretty
    fast. I’m thinking about creating my own but I’m not sure where to begin. Do you have any tips or
    suggestions? With thanks

  21. obviously like your website however you have to check the spelling on quite
    a few of your posts. A number of them are rife with spelling problems and I to find it
    very bothersome to inform the truth then again I will surely come again again.

  22. Appreciating the time and effort you put into your
    website and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material.
    Excellent read! I’ve saved your site and I’m including your RSS feeds to my Google account.

  23. Just wish to say your article is as astounding. The clearness in your post is simply nice and i could
    assume you’re an expert on this subject. Well with your permission allow me to grab your feed to keep up to date with forthcoming post.
    Thanks a million and please continue the rewarding work.

  24. I spent four years trying EVERYTHING in Online Dating, and through a huge amount of trial and error, I produced a system that I will share for you. This book will take you, step by step, through everything you need to know to double, triple or even quadruple the number of women you meet online.

  25. I really like your blog.. very nice colors & theme. Did you design this website yourself or did
    you hire someone to do it for you? Plz respond as
    I’m looking to construct my own blog and would like to find out where u got this from.
    kudos

  26. Simply wish to say your article is as surprising. The clearness in your post is simply excellent and i can assume you are an expert on this subject. Well with your permission allow me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please carry on the gratifying work.

  27. I know top Blog professionals would really like your blog. You have a good head on your shoulders. You always know just what to say. I truly appreciate this page. Neat post.

  28. There are some attention-grabbing cut-off dates in this article however I don’t know if I see all of them heart to heart. There may be some validity however I will take maintain opinion until I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as well

  29. There are some attention-grabbing cut-off dates in this article however I don’t know if I see all of them heart to heart. There may be some validity however I will take maintain opinion until I look into it further. Good article , thanks and we would like extra! Added to FeedBurner as well

  30. I needed to send you a very little word to finally thank you so much yet again on the pretty information you have shown on this site. This has been really unbelievably generous of people like you to supply extensively what exactly most people would have sold as an ebook to generate some cash for themselves, especially considering the fact that you might well have done it if you decided. Those techniques in addition served as the good way to fully grasp other individuals have similar keenness really like my personal own to learn good deal more around this condition. I’m sure there are millions of more fun periods up front for individuals that looked over your blog.

  31. You made some decent points there. I regarded on the internet for the difficulty and found most individuals will associate with along with your website.

  32. Unquestionably imagine that which you said. Your favorite reason seemed to be at the web the simplest factor to
    be aware of. I say to you, I definitely get annoyed even as other folks think about concerns that they just don’t understand about.

    You managed to hit the nail upon the highest and also defined out the entire thing with no need side effect , folks could take a signal.
    Will likely be back to get more. Thanks

  33. 【保養臉】迎接春夏沒在怕!早晚肌膚喚白就靠它 ♡ 升級了!第二代CAST’EE美白淡斑精華 @ 潮流、美妝、消費 創造個人化風格的女性社群 PIXstyleMe 【保養臉】迎接春夏沒在怕!早晚肌膚喚白就靠它 ♡ 升級了!第二代CAST’EE美白淡斑精華

  34. A person necessarily assist to make seriously articles I would state.
    This is the first time I frequented your website page and
    thus far? I surprised with the research you made to create this particular post extraordinary.

    Great process!

  35. Nice post. I was checking continuously this blog
    and I’m inspired! Extremely useful information specially the ultimate
    part 🙂 I maintain such information much. I used to be seeking this particular info for a long time.
    Thanks and good luck.

  36. I believe everything published was actually very reasonable.
    However, think about this, what if you added a little information?
    I am not suggesting your information is not good., however what if you added a headline to
    possibly get people’s attention? I mean RenderAction and
    SubControllers in ASP.NET MVC – Andreas Schlapsi is a little plain. You might peek at Yahoo’s front page and see
    how they create news headlines to get viewers interested.
    You might try adding a video or a related picture or two to get people interested about everything’ve got
    to say. Just my opinion, it could bring your blog a little
    livelier.

  37. Thank you, I have just been looking for info approximately this topic for
    a while and yours is the greatest I’ve found out till now.

    But, what in regards to the bottom line? Are you sure concerning
    the supply?

  38. Can I just say what a reduction to find someone who actually knows what theyre speaking about on the internet. You positively know learn how to carry a difficulty to light and make it important. Extra people must learn this and perceive this side of the story. I cant imagine youre not more common since you undoubtedly have the gift.

  39. I’ll right away grasp your rss as I can not in finding your e-mail subscription hyperlink or e-newsletter service.
    Do you’ve any? Please permit me recognise so that I could subscribe.
    Thanks.

  40. Its like you read my mind! You seem to grasp so much approximately this, such as you wrote the guide in it or something.
    I think that you simply could do with a few p.c.
    to force the message house a bit, but instead of that, this is magnificent blog.
    A fantastic read. I’ll certainly be back.

  41. Wow that was strange. I just wrote an incredibly
    long comment but after I clicked submit my comment didn’t appear.
    Grrrr… well I’m not writing all that over again. Anyways, just wanted to say excellent blog!

  42. Pretty nice post. I just stumbled upon your weblog
    and wished to say that I have truly enjoyed browsing your blog posts.

    In any case I’ll be subscribing to your rss feed and I hope you write
    again very soon!

  43. Pretty great post. I just stumbled upon your blog and
    wanted to say that I have really enjoyed browsing your
    blog posts. After all I will be subscribing on your
    feed and I hope you write again soon!

  44. whoah this blog is magnificent i love studying your posts.

    Keep up the great work! You recognize, many individuals are searching round for this information, you can help
    them greatly.

  45. Tried to find any method of additional income and always failed until I finally found something legit: http://bit.ly/2ODt2Tt – You get 30 on all products, all you have to do is copy your affiliate link and comment on blogs, forums etc. Just register and confirm your accouunt, go to affiliate links section, copy your favorite product link and spread it all over the internet. Piece of cake!

Leave a Reply

Your email address will not be published.