<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC</title><link>http://forums.asp.net/1146.aspx</link><description>Discussions regarding Model-View-Controller (MVC) support in ASP.NET.  &lt;a href="http://forums.asp.net/1215.aspx"&gt;T4MVC subforum&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: How are ViewUserControls meant to be used?</title><link>http://forums.asp.net/thread/2093465.aspx</link><pubDate>Mon, 07 Jan 2008 06:17:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2093465</guid><dc:creator>robconery</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2093465.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2093465</wfw:commentRss><description>&lt;p&gt;Did you say &amp;quot;good long blog post&amp;quot;... oh dear. You&amp;#39;re egging me on aren&amp;#39;t you :).&amp;nbsp;&lt;/p&gt;&lt;p&gt;And here I was thinking that I might get some sleep tonite :)&lt;/p&gt;&lt;p&gt;http://blog.wekeroad.com/2008/01/07/aspnet-mvc-using-usercontrols-usefully/&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How are ViewUserControls meant to be used?</title><link>http://forums.asp.net/thread/2089401.aspx</link><pubDate>Fri, 04 Jan 2008 00:23:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2089401</guid><dc:creator>tgmdbm</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2089401.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2089401</wfw:commentRss><description>&lt;p&gt;Ok, the Controller should contain no logic other than where to get the data from, which view to render, and how to pass the data to the view.&lt;/p&gt;&lt;p&gt;The view is solely responsible for rendering the view, and so by extension, responsible for displaying any &amp;quot;sub views&amp;quot;. So any ViewUserControls belong here.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;However, a lot of the time the UI is customisable, ie, this user was the weather control, and this user has the stock control. And the information regarding which user has which controls is stored in the database and so the controller is now concerned about something other than the entities being acted upon.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;To be perfectly honest i don&amp;#39;t know the best way to organise this. It would be good if someone could write a good blog post on this.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How are ViewUserControls meant to be used?</title><link>http://forums.asp.net/thread/2089366.aspx</link><pubDate>Thu, 03 Jan 2008 23:32:12 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2089366</guid><dc:creator>uooq</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2089366.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2089366</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m sorry if this is a really silly question, &lt;img src="http://forums.asp.net/emoticons/emotion-10.gif" alt="Embarrassed" /&gt; but I&amp;#39;m having a hard time grokking what the right usage of a ViewUserControl looks like. Does one invoke the RenderView from a controller? If so, where is the parent page that the ViewUserControl is embedded in? Or, should you put RenderView into the ASPX of a ViewPage itself? &lt;/p&gt;
&lt;p&gt;I can make the thing&amp;nbsp; render in any number of different ways from different places, but I&amp;#39;m not clear on what the right MVC model is for this situation. I&amp;#39;ve read the long thread on the &amp;quot;.. very complex page with many MVC modules...&amp;quot; but I&amp;#39;m thinking of a simpler scenario: Let&amp;#39;s suppose you have three or four different views that you want to compose into a page? Is this the right scenario for a ViewUserControl? If so, where would you reference the control itself? &lt;/p&gt;
&lt;p&gt;Also, are there any working examples posted that use ViewUserControls?&lt;/p&gt;
&lt;p&gt;Now repeat the above question but swap in Master Page/ViewContentPage&amp;nbsp;&amp;nbsp; :) &lt;/p&gt;</description></item></channel></rss>