<?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: Rendering a View without its Masterpage</title><link>http://forums.asp.net/thread/3274705.aspx</link><pubDate>Sat, 04 Jul 2009 13:38:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3274705</guid><dc:creator>Freakish_05</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3274705.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3274705</wfw:commentRss><description>&lt;p&gt;Thanks CodeHobo!&amp;nbsp; That worked perfectly!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Rendering a View without its Masterpage</title><link>http://forums.asp.net/thread/3273992.aspx</link><pubDate>Fri, 03 Jul 2009 20:38:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273992</guid><dc:creator>CodeHobo</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273992.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3273992</wfw:commentRss><description>&lt;p&gt;Why don&amp;#39;t you create a master page specifically for ajax requests. Even if it&amp;#39;s a bare bones page with just the content controls? Then for ajax requests just return View(&amp;quot;ViewFile&amp;quot;, &amp;quot;~/Path/To/AjaxMasterPage.Master&amp;quot;);&lt;/p&gt;&lt;p&gt;If your view has content controls I think you need a master page, even if it&amp;#39;s a very simple stripped down version.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Rendering a View without its Masterpage</title><link>http://forums.asp.net/thread/3273898.aspx</link><pubDate>Fri, 03 Jul 2009 18:16:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3273898</guid><dc:creator>Freakish_05</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3273898.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=3273898</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;All of my views need to have masterpages associated with them so that if a client is browsing without ajax support the site still works.&lt;/p&gt;&lt;p&gt;But for clients supporting ajax sometimes I need to render just the view to inject into the content div of my masterpage.&lt;/p&gt;&lt;p&gt;How do I do this?&lt;/p&gt;&lt;p&gt;I&amp;#39;ve tried taking the masterpage attribute of the page header, this works when I use return View(&amp;quot;ViewFile&amp;quot;, &amp;quot;~/Path/To/MasterPage.Maser&amp;quot;); but when I use return View(&amp;quot;ViewFile&amp;quot;) I get a HttpException: Content controls are only allowed in pages that reference a masterpage.&lt;/p&gt;&lt;p&gt;Many thanks,&lt;/p&gt;&lt;p&gt;Jason&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>