﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Changes are not visible - Cache problem?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changes-are-not-visible---Cache-problem/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Changes are not visible - Cache problem?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changes-are-not-visible---Cache-problem/</link><pubDate>Sun, 27 Sep 2009 23:12:08 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;You can try to refresh WebGrid on client side using OnPaneItemClick event provided in WebExplorerPane. So everytime user click on it you can find the WebGrid object and refresh it manually. &lt;/p&gt;
&lt;p&gt;But I'm affraid this can cause some problems because you are using IFrame content mode which is it will make you difficult to find WebGrid Object, and also I think it will cause a problem if IFrame still loading the content while you trying to find WebGrid object. So I propose you to use SetCacheability as mentioned before.&lt;/p&gt;</description></item><item><title>Changes are not visible - Cache problem?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changes-are-not-visible---Cache-problem/</link><pubDate>Fri, 25 Sep 2009 00:14:55 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi Dicky&lt;/p&gt;
&lt;p&gt;Thanks, it works.&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;It may be possible to refresh only the grid data instead of the whole page?&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;Regards&lt;/div&gt;
&lt;div dir="ltr"&gt;Michael&lt;/div&gt;</description></item><item><title>Changes are not visible - Cache problem?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changes-are-not-visible---Cache-problem/</link><pubDate>Wed, 23 Sep 2009 21:54:01 GMT</pubDate><dc:creator>Dicky</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;That could happens because ASP.NET still cache the page which loaded from iFrame. To have a fresh data after first load then you need to disable response page in your page that contains WebGrid. You can put these codes on Page_Load event of yourwebgrid.aspx:&lt;/p&gt;&lt;pre&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetValidUntilExpires(false);

&lt;/pre&gt;

&lt;p&gt;Hope this helps.&lt;/p&gt;</description></item><item><title>Changes are not visible - Cache problem?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Changes-are-not-visible---Cache-problem/</link><pubDate>Wed, 23 Sep 2009 12:36:21 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I use WebDesktopManager with IFrame Window (see attached file).&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;When I open the window for the first time I see the postback and the data is read from the DB. &lt;div id="result_box" dir="ltr"&gt;After I have changed data I switch to another window.&amp;nbsp;Then I&amp;nbsp;switch back to the previous window (I see no postback). The changes are not visible! Only&lt;strong&gt; &lt;/strong&gt;when &lt;strong&gt;I click refresh, the changes are visible again&lt;/strong&gt;. Apparently, the data are cached at the first load.&lt;/div&gt;&lt;div dir="ltr"&gt;&amp;nbsp;&lt;/div&gt;&lt;div dir="ltr"&gt;
&lt;div id="result_box" dir="ltr"&gt;How can I change this behavior? I always want to see the current data.&lt;/div&gt;
&lt;div dir="ltr"&gt;I have set &lt;em&gt;AllowAutoDataCaching="False"&lt;/em&gt; and &lt;em&gt;ViewStateStorage="None"&lt;/em&gt;, but nothing happens.&lt;/div&gt;
&lt;div dir="ltr"&gt; &lt;/div&gt;
&lt;div dir="ltr"&gt;Thanks for tips.&lt;/div&gt;
&lt;div dir="ltr"&gt;Regards&lt;/div&gt;
&lt;div dir="ltr"&gt;Michael&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description></item></channel></rss>