<?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: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2907642.aspx</link><pubDate>Sun, 01 Feb 2009 20:58:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2907642</guid><dc:creator>Nik Coughlin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2907642.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2907642</wfw:commentRss><description>&lt;p&gt;Thanks for posting that Herne, that&amp;#39;s extremely reassuring!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2903403.aspx</link><pubDate>Fri, 30 Jan 2009 09:31:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2903403</guid><dc:creator>Herne</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2903403.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2903403</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve changed the last line of PartialRequest.Invoke to &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre class="coloredcode"&gt;SimpleWorkerRequest request = &lt;span class="kwd"&gt;new&lt;/span&gt; SimpleWorkerRequest(&lt;span class="st"&gt;&amp;quot;dummy.html&amp;quot;&lt;/span&gt;, &lt;span class="kwd"&gt;null&lt;/span&gt;, &lt;span class="kwd"&gt;new&lt;/span&gt; StringWriter(CultureInfo.CurrentCulture));&lt;br /&gt;handler.ProcessRequest(&lt;span class="kwd"&gt;new&lt;/span&gt; HttpContext(request));&lt;br /&gt;&lt;/pre&gt;&amp;nbsp;&lt;br /&gt;and everything seems to be working again. Thoughts?&lt;br /&gt;&lt;br /&gt;Edit: Just to clarify, I&amp;#39;m using BlockRenderer &lt;a href="http://forums.asp.net/p/1370077/2861066.aspx#2861066" target="_blank"&gt;this&lt;/a&gt; way.&lt;br /&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2901496.aspx</link><pubDate>Thu, 29 Jan 2009 16:56:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2901496</guid><dc:creator>Herne</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2901496.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2901496</wfw:commentRss><description>&lt;p&gt;Does anyone have any alternative ideas? &lt;/p&gt;&lt;p&gt;(Or a pointer to an idea :) )&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2899156.aspx</link><pubDate>Wed, 28 Jan 2009 21:17:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2899156</guid><dc:creator>brs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2899156.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2899156</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks, but the methods there are very similar to the block renderer, and have the same problem...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2899087.aspx</link><pubDate>Wed, 28 Jan 2009 20:47:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2899087</guid><dc:creator>Nik Coughlin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2899087.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2899087</wfw:commentRss><description>&lt;p&gt;&lt;a&gt;Here&amp;#39;s a thread on Stackoverflow with several alternate methods&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a&gt;http://stackoverflow.com/questions/483091/render-a-view-as-a-string&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2898588.aspx</link><pubDate>Wed, 28 Jan 2009 17:43:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2898588</guid><dc:creator>brs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2898588.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2898588</wfw:commentRss><description>Thanks for the explanation Phil. Can you recommend any alternatives for capturing the rendered HTML from a partial view? If not, is there any other way to update several different components of the page in a single request? Unfortunately my app is pretty dependent on this.&lt;br /&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2898553.aspx</link><pubDate>Wed, 28 Jan 2009 17:32:38 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2898553</guid><dc:creator>Haacked</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2898553.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2898553</wfw:commentRss><description>&lt;p&gt;The reason we reset the content type is that if you set the content type in the action method, when you render the view, the view would change the content type. This is due to the Page&amp;#39;s ProcessRequest method which sets the content type. Hopefully we can look at making changes to the core Page class in .NET 4, but we&amp;#39;ll see. Sorry for the annoyance.&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2898504.aspx</link><pubDate>Wed, 28 Jan 2009 17:17:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2898504</guid><dc:creator>brs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2898504.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2898504</wfw:commentRss><description>&lt;p&gt;I agree, and it seems like a common enough request/complaint. I have been hoping that there would be a good way to do this before the final release, but that&amp;#39;s looking less &amp;amp; less likely. It only seems to be getting more difficult with each new release...&lt;/p&gt;&lt;p&gt;I have also considered switching to a new view engine, but it would require rewriting quite a bit of code, which I would obviously like to avoid.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2896515.aspx</link><pubDate>Wed, 28 Jan 2009 02:43:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2896515</guid><dc:creator>Nik Coughlin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2896515.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2896515</wfw:commentRss><description>&lt;p&gt;I was going to transition to RC1 today too, glad I didn&amp;#39;t.&amp;nbsp; &lt;/p&gt;&lt;p&gt;I&amp;#39;m doing something vaguely similar, using a BlockRenderer so that I can do RenderPartialToString&lt;/p&gt;&lt;p&gt;We &lt;b&gt;need&lt;/b&gt; to be able to render partials to strings!&amp;nbsp; There are just too many things that it&amp;#39;s useful for.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Either that or stop using the webform view.&amp;nbsp; God knows I&amp;#39;m not terribly fond of it... but I like intellisense too much to change my view engine.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>BlockRenderer method broken in RC1?</title><link>http://forums.asp.net/thread/2896402.aspx</link><pubDate>Wed, 28 Jan 2009 00:50:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2896402</guid><dc:creator>brs</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2896402.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2896402</wfw:commentRss><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;&lt;p&gt;In my app I need to be able to update several parts of the page with a single ajax request.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have been using the BlockRenderer method for rendering several partial views. I then stick the rendered html into a JSON object for the javascript to insert into the page.&lt;/p&gt;&lt;p&gt;It appears RC1 breaks the BlockRenderer method. After rendering a partial view, the response stream must be flushed before you can retrieve the contents of the CapturingResponseFilter. It looks like Render() now resets the content type-- but since the response is flushed the first time you render a view, the headers are sent, and when the second view is rendered, you get an exception when it tries to reset the content type.&lt;/p&gt;&lt;p&gt;Is this related to the comment in the release notes about RenderPartial no longer resetting the content type? How can I work around this? Thanks in advance.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>