<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SubControllers in ASP.NET MVC</title>
	<atom:link href="http://mhinze.com/subcontrollers-in-aspnet-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/</link>
	<description>Matt Hinze, learning in public</description>
	<lastBuildDate>Fri, 26 Feb 2010 17:28:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrej Kaurin</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-460</link>
		<dc:creator>Andrej Kaurin</dc:creator>
		<pubDate>Mon, 23 Nov 2009 18:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-460</guid>
		<description>How they deal with form submitting without affecting the parent controller and routing?
Also if I have a plenty of subcontrollers on page do I have to use this?

public ActionResult Index(MySubController1 one, MySubController2 two, MySubController3 three, ...)    {
        ....
    }</description>
		<content:encoded><![CDATA[<p>How they deal with form submitting without affecting the parent controller and routing?<br />
Also if I have a plenty of subcontrollers on page do I have to use this?</p>
<p>public ActionResult Index(MySubController1 one, MySubController2 two, MySubController3 three, &#8230;)    {<br />
        &#8230;.<br />
    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-258</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Fri, 06 Mar 2009 00:14:30 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-258</guid>
		<description>I don&#039;t get why all these tricks just to delay the subcontroller invocation until the view is rendered. Why not just invoke another &#039;subcontroller&#039; directly from the parent controller, and put the rendering result to the ViewData, which will be displyed literaaly on the view.
Using the trick used in this post, there are too much magic and convention, and that 1 subcontroller can only have 1 action.
I just don&#039;t understand why we need to insist to let the view invoke the other controller. Why not just let controller call the other controller directly? Afterall, isnt it more MVC to get do it this way?</description>
		<content:encoded><![CDATA[<p>I don&#8217;t get why all these tricks just to delay the subcontroller invocation until the view is rendered. Why not just invoke another &#8217;subcontroller&#8217; directly from the parent controller, and put the rendering result to the ViewData, which will be displyed literaaly on the view.<br />
Using the trick used in this post, there are too much magic and convention, and that 1 subcontroller can only have 1 action.<br />
I just don&#8217;t understand why we need to insist to let the view invoke the other controller. Why not just let controller call the other controller directly? Afterall, isnt it more MVC to get do it this way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Softlion</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-254</link>
		<dc:creator>Softlion</dc:creator>
		<pubDate>Sat, 28 Feb 2009 08:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-254</guid>
		<description>I prefer the way it&#039;s done in MVC FUtures:
&lt;%= Html.RenderAction(actionName,params) %&gt;

It seems more effective and more concise than your solution, and has the same drawback: you&#039;re calling a controller from within a view ...
Unit testing with mocking may be easy if RenderAction uses a factory to create the ControllerClass.</description>
		<content:encoded><![CDATA[<p>I prefer the way it&#8217;s done in MVC FUtures:<br />
&lt;%= Html.RenderAction(actionName,params) %&gt;</p>
<p>It seems more effective and more concise than your solution, and has the same drawback: you&#8217;re calling a controller from within a view &#8230;<br />
Unit testing with mocking may be easy if RenderAction uses a factory to create the ControllerClass.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sub-Controllers, PartialRequests and Separating Views From Controllers &#171; Giraffe: Developer</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-247</link>
		<dc:creator>Sub-Controllers, PartialRequests and Separating Views From Controllers &#171; Giraffe: Developer</dc:creator>
		<pubDate>Mon, 26 Jan 2009 11:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-247</guid>
		<description>[...] have an investigate of sub-controllers. I got the MVC Contrib project hooked up to my application, re-read Matt Hinze&#8217;s blog post on the subject and started creating my sub controller and view for the session status. Great, this is gonna be [...]</description>
		<content:encoded><![CDATA[<p>[...] have an investigate of sub-controllers. I got the MVC Contrib project hooked up to my application, re-read Matt Hinze&#8217;s blog post on the subject and started creating my sub controller and view for the session status. Great, this is gonna be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hierarchical Controllers in ASP.NET MVC &#171; Giraffe Developer</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-229</link>
		<dc:creator>Hierarchical Controllers in ASP.NET MVC &#171; Giraffe Developer</dc:creator>
		<pubDate>Fri, 09 Jan 2009 13:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-229</guid>
		<description>[...] Controllers in ASP.NET&#160;MVC By Giraffe  When I read that Jeffrey Palermo had added sub-controllers to ASP.NET MVC, I hoped that it would be the exact solution I was looking for in my app. Unfortunately, the [...]</description>
		<content:encoded><![CDATA[<p>[...] Controllers in ASP.NET&nbsp;MVC By Giraffe  When I read that Jeffrey Palermo had added sub-controllers to ASP.NET MVC, I hoped that it would be the exact solution I was looking for in my app. Unfortunately, the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Asp.net MVC : SubControllers &#124; The .Net frog</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-227</link>
		<dc:creator>Asp.net MVC : SubControllers &#124; The .Net frog</dc:creator>
		<pubDate>Tue, 18 Nov 2008 13:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-227</guid>
		<description>[...] Grâce à MVC Contrib, un librairie open source couvrant certains aspects absents d&#039;Asp.net MVC, il est possible d&#039;utiliser des &quot;SubControllers&quot; afin de réutiliser des unités logiques au sein de plusieurs actions en minimisant la duplication de code. Matt Hinze, à l&#039;origine du projet en explique le fonctionnement ici. [...]</description>
		<content:encoded><![CDATA[<p>[...] Grâce à MVC Contrib, un librairie open source couvrant certains aspects absents d&#8217;Asp.net MVC, il est possible d&#8217;utiliser des &#8220;SubControllers&#8221; afin de réutiliser des unités logiques au sein de plusieurs actions en minimisant la duplication de code. Matt Hinze, à l&#8217;origine du projet en explique le fonctionnement ici. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RenderAction and SubControllers in ASP.NET MVC</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-220</link>
		<dc:creator>RenderAction and SubControllers in ASP.NET MVC</dc:creator>
		<pubDate>Sat, 01 Nov 2008 14:02:44 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-220</guid>
		<description>[...] 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 [...]</description>
		<content:encoded><![CDATA[<p>[...] 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 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Sanderson&#8217;s blog &#187; Blog Archive &#187; Partial Requests in ASP.NET MVC</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-216</link>
		<dc:creator>Steve Sanderson&#8217;s blog &#187; Blog Archive &#187; Partial Requests in ASP.NET MVC</dc:creator>
		<pubDate>Tue, 14 Oct 2008 10:37:59 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-216</guid>
		<description>[...] Option 2 is conceptually much simpler and enables simpler code, though at runtime there are more moving parts. It&#8217;s more like having a collection of genuinely independent widgets.&#160; This is what you get with &lt;%= Html.RenderAction(&#8230;) %&gt; (which is sadly relegated to the MVC Futures assembly and has been left with some technical problems), and also with MvcContrib&#8217;s new idea of subcontrollers. [...]</description>
		<content:encoded><![CDATA[<p>[...] Option 2 is conceptually much simpler and enables simpler code, though at runtime there are more moving parts. It&#8217;s more like having a collection of genuinely independent widgets.&nbsp; This is what you get with &lt;%= Html.RenderAction(&#8230;) %&gt; (which is sadly relegated to the MVC Futures assembly and has been left with some technical problems), and also with MvcContrib&#8217;s new idea of subcontrollers. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MvcContrib latest release now with SubController support : Jeffrey Palermo (.com)</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-215</link>
		<dc:creator>MvcContrib latest release now with SubController support : Jeffrey Palermo (.com)</dc:creator>
		<pubDate>Mon, 06 Oct 2008 03:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-215</guid>
		<description>[...] You can follow MvcContrib on twitter.&#160; See what Matt Hinze has said about his experience with SubControllers. [...]</description>
		<content:encoded><![CDATA[<p>[...] You can follow MvcContrib on twitter.&nbsp; See what Matt Hinze has said about his experience with SubControllers. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio Pereira</title>
		<link>http://mhinze.com/subcontrollers-in-aspnet-mvc/comment-page-1/#comment-189</link>
		<dc:creator>Sergio Pereira</dc:creator>
		<pubDate>Thu, 25 Sep 2008 02:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://mhinze.com/?p=98#comment-189</guid>
		<description>I think this was a very clever solution. It also shows that the model binder is being hacked like crazy (or &quot;trick&quot;  as you called it ;) ) to do things it was not meant to do (judging by its name.) 
Would it work if the subcontrollers were constructor-injected instead of actionParameter-injected ? Similar conventions could be set to populate the viewdata from controller properties.</description>
		<content:encoded><![CDATA[<p>I think this was a very clever solution. It also shows that the model binder is being hacked like crazy (or &#8220;trick&#8221;  as you called it <img src='http://mhinze.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ) to do things it was not meant to do (judging by its name.)<br />
Would it work if the subcontrollers were constructor-injected instead of actionParameter-injected ? Similar conventions could be set to populate the viewdata from controller properties.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
