<?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>Search results matching tag 'RenderView'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=RenderView&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'RenderView'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Multiple Tables in the same MVC app / View</title><link>http://forums.asp.net/thread/3492025.aspx</link><pubDate>Tue, 03 Nov 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3492025</guid><dc:creator>brandrui</dc:creator><description>&lt;p&gt;I&amp;#39;m working on a web application to update a tutoring database and thought MVC would make a good framework. I&amp;#39;ve done a lot of the basic coding off of one table in the database. However, the application actually needs to pull data from multiple tables in different places and then write all of the entered data into the one table which is currently being referenced. &lt;/p&gt;&lt;p&gt;e.g. The table referenced by create and edit is called Encounter. It has one to many links to a Student table, a Teacher table, a School table and a Subject table. The hope is to use Ajax to call to a field in the Student table to start giving options when the name starts to be entered as well as populate a drop down list from the School table. Also looking to include a nice date and time picker for the start and finish times which can then calculate elapsed time in minutes and hours in separate fields. (Don&amp;#39;t ask on that one, user requested.)&lt;/p&gt;&lt;p&gt;However to get this all started, I need to know if it&amp;#39;s possible to access multiple tables and if there are any resources to help me catch up on how to do this so I can read and then trial and error code it myself. &lt;/p&gt;&lt;p&gt;Any direction to resources I&amp;#39;m missing will be helpful,&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Tony&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to pass ViewData with RenderPartial</title><link>http://forums.asp.net/thread/2607094.aspx</link><pubDate>Mon, 08 Sep 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2607094</guid><dc:creator>illcommunication</dc:creator><description>&lt;p&gt;&amp;nbsp;Hello&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have a problem with a ascx view control and the view data. If work like this:&lt;/p&gt;&lt;p&gt;&amp;nbsp;public void AjaxTr&amp;lt;T&amp;gt;(string id, Expression&amp;lt;Action&amp;lt;T&amp;gt;&amp;gt; detailAction,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression&amp;lt;Action&amp;lt;T&amp;gt;&amp;gt; editAction) where T : Controller, new()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string viewName = ActionUtils.GetViewName&amp;lt;T&amp;gt;(detailAction);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; htmlHelper.RenderPartial(viewName);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;There is no more ViewData in the PartialView (ascx-File). The ViewData in the Controller T(detailAction) is existent and correct. But it is empty in the PartialView (there is only the ViewData of the aspx Page where I call the renderPartial Method).&lt;/p&gt;&lt;p&gt;Can you help me with this? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>where is RenderView() in preview 3</title><link>http://forums.asp.net/thread/2390039.aspx</link><pubDate>Fri, 30 May 2008 04:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2390039</guid><dc:creator>Ahtesham</dc:creator><description>&lt;p&gt;hey , i am using visual studio 2008 and i have just download the AspNetMVCPreview3-setup and i am trying to work on expample by scott on mvc &lt;/p&gt;
&lt;p&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2007/11/13/asp-net-mvc-framework-part-1.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;first i had problem that i was not able to find [controllerAction] but then i found out that in latest mvc we do not need it RenderView() function &lt;/p&gt;
&lt;p&gt;in scott blog he said &lt;/p&gt;
&lt;p&gt;&amp;quot;We&amp;#39;ll use one of the RenderView() methods on the Controller base class to specify the View we want to use, as well as explicitly pass in the specific data that we want the View to use to render its response.&amp;quot;&lt;/p&gt;
&lt;p&gt;which should mean that its in controller class but i&amp;nbsp; can not find any thing like that in that class too , idk am i missin somthin or some other method replace this , very confuse here that what else has change (if any) in MVC Preview3 and is there any new example regarding that , if there is any plese help me out on that &lt;/p&gt;
&lt;p&gt;Ahtesham&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>How Do I Render a View From a Different Controller</title><link>http://forums.asp.net/thread/2092607.aspx</link><pubDate>Sun, 06 Jan 2008 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2092607</guid><dc:creator>ghotiman</dc:creator><description>&lt;p&gt;I&amp;#39;ve built an RSS&amp;nbsp;view that I would like to be able to render from a number of different controllers that provide different data.&amp;nbsp; By default RenderView() looks in the ~/Views/[ControllerName] folder for the view.&amp;nbsp; I can&amp;#39;t figure out how to render this view from within different controllers.&amp;nbsp; I&amp;#39;ve heard that you are supposed to be able to override the default behavior for RenderView, but I&amp;#39;m not sure how to do that or if it is the right direction.&amp;nbsp; Any tips?&amp;nbsp; Thanks.&lt;/p&gt;</description></item><item><title>Re: RenderView ToString()</title><link>http://forums.asp.net/thread/2071509.aspx</link><pubDate>Thu, 20 Dec 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2071509</guid><dc:creator>Kepler</dc:creator><description>&lt;p&gt;In most cases, I&amp;#39;d say &amp;quot;yes&amp;quot;, but not in the case of a Content Management System.&amp;nbsp; I like your MasterView idea, but you&amp;#39;d still need a controller to handle the model manipulation for that.&amp;nbsp; Something&amp;#39;s got to hit the database to determine what partial views to display on a particular page, and I think that might just be the responsibility of a specific, focused controller somewhere.&amp;nbsp; A CMS is an exception when we&amp;#39;re talking about separation of concerns, because of exactly what it&amp;#39;s trying to do.&amp;nbsp; If the business logic of your domain IS to map modules/views together onto pages, and you have database tables to facilitate that, then View manipulation is exactly what your controller will do.&amp;nbsp; Controllers handle whatever their domain requires them to handle.&amp;nbsp; It just so happens that a CMS will probably have at least one controller who&amp;#39;s primary responsibility is handling the&amp;nbsp;mapping of Views onto pages.&amp;nbsp;&amp;nbsp;That controller&amp;nbsp;might handle Views like another controller would handle Products&amp;nbsp;or Employees.&amp;nbsp; I totally agree that all the partial views should be completely ignorant, however, of anything but their own piece of the pie.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why my idea to encapsulate all of this into RenderView is the best I&amp;#39;ve come up with so far.&amp;nbsp; Every partial view would just call his own Render for his View, then RenderView is responsible for figuring out if the parent View has been &amp;quot;built&amp;quot; and calling out to the other partial view&amp;#39;s controllers to have them render their pieces, then aggregating the results.&amp;nbsp; That way the page-building logic is in RenderView (might consider it the &amp;quot;framework&amp;quot;) and out of any specific controller.&lt;/p&gt;</description></item><item><title>RenderView ToString()</title><link>http://forums.asp.net/thread/2057828.aspx</link><pubDate>Thu, 13 Dec 2007 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2057828</guid><dc:creator>Tom Schreck</dc:creator><description>&lt;p&gt;Is there a way to capture the results of RenderView() to a string?&lt;/p&gt;</description></item></channel></rss>