<?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: [OutputCache] problem in Html.RenderAction()</title><link>http://forums.asp.net/thread/2683058.aspx</link><pubDate>Wed, 15 Oct 2008 01:51:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2683058</guid><dc:creator>levib</dc:creator><author>levib</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2683058.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2683058</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;mike108mvp:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Will it be solved in the next version of MVC?&amp;nbsp; It&amp;#39;s a critical issue for our MVC application.&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;I don&amp;#39;t know.&amp;nbsp; If this is blocking you, you have a few options. 
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Write a filter that performs caching, as suggested by an earlier poster.&amp;nbsp; Presumably such a filter would work by hooking into the response stream.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If you&amp;#39;re implementing caching to work around database access, you could modify your model repository to look in a cache (such&amp;nbsp;as that provided by ASP.NET)&amp;nbsp;before looking in the database.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If only a particular part of your application requires partial view caching, you could use WebForms rather than MVC for that part of your application.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I realize that these aren&amp;#39;t particularly good options. :(&amp;nbsp; Depending on the complexity of your application, one of the first two methods should be sufficient.&lt;/p&gt;</description></item><item><title>Re: [OutputCache] problem in Html.RenderAction()</title><link>http://forums.asp.net/thread/2683051.aspx</link><pubDate>Wed, 15 Oct 2008 01:45:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2683051</guid><dc:creator>mike108mvp</dc:creator><author>mike108mvp</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2683051.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2683051</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;levib:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;This is a known issue, but unfortunately we don&amp;#39;t yet have a solution for it.&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;Will it be solved in the next version of MVC?&amp;nbsp; It&amp;#39;s a critical issue for our MVC application.&lt;/p&gt;</description></item><item><title>Re: [OutputCache] problem in Html.RenderAction()</title><link>http://forums.asp.net/thread/2682413.aspx</link><pubDate>Tue, 14 Oct 2008 18:34:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2682413</guid><dc:creator>f00sion</dc:creator><author>f00sion</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2682413.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2682413</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;No way around it without making a custom output cache attribute.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: [OutputCache] problem in Html.RenderAction()</title><link>http://forums.asp.net/thread/2682390.aspx</link><pubDate>Tue, 14 Oct 2008 18:23:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2682390</guid><dc:creator>levib</dc:creator><author>levib</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2682390.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2682390</wfw:commentRss><description>&lt;p&gt;This is a known issue, but unfortunately we don&amp;#39;t yet have a solution for it.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>[OutputCache] problem in Html.RenderAction()</title><link>http://forums.asp.net/thread/2682197.aspx</link><pubDate>Tue, 14 Oct 2008 16:31:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2682197</guid><dc:creator>mike108mvp</dc:creator><author>mike108mvp</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2682197.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1146&amp;PostID=2682197</wfw:commentRss><description>&lt;p&gt;[OutputCache] problem in Html.RenderAction()&lt;/p&gt;
&lt;p&gt;When I use Html.RenderAction(&amp;quot;AddProduct&amp;quot;) in a view page&amp;nbsp; ~/Views/Product/Test.aspx, and the Action &amp;quot;AddProduct&amp;quot; has the [OutputCache]&amp;nbsp;&amp;nbsp;attribute.&lt;/p&gt;
&lt;p&gt;The problem is that the&amp;nbsp;Action &amp;quot;AddProduct&amp;quot;&amp;nbsp; &amp;#39;s&amp;nbsp;&amp;nbsp;[OutputCache]&amp;nbsp;&amp;nbsp;attribute has&amp;nbsp;affected the&amp;nbsp;view page&amp;nbsp; ~/Views/Product/Test.aspx .&lt;/p&gt;
&lt;p&gt;Could you please tell me How to made the&amp;nbsp;&amp;nbsp;Action &amp;quot;AddProduct&amp;quot;&amp;nbsp; &amp;#39;s&amp;nbsp;&amp;nbsp; [OutputCache] attribute do not affect the view page&amp;nbsp; ~/Views/Product/Test.aspx&amp;nbsp; that has Html.RenderAction(&amp;quot;AddProduct&amp;quot;) ?&lt;/p&gt;</description></item></channel></rss>