<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://shazwazza.com/rss/xslt"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Shazwazza</title>
    <link>https://shazwazza.com/</link>
    <description>My blog which is pretty much just all about coding</description>
    <generator>Articulate, blogging built on Umbraco</generator>
    <image>
      <url>/media/0libq25y/frog.png?rmode=max&amp;v=1da0e911f4e6890</url>
      <title>Shazwazza</title>
      <link>https://shazwazza.com/</link>
    </image>
    <item>
      <guid isPermaLink="false">1300</guid>
      <link>https://shazwazza.com/post/a-problem-using-sifr-for-menus-that-link-to-databound-forms-in-ie7/</link>
      <category>Web Development</category>
      <title>A problem using sIFR for menus that link to databound forms in IE7</title>
      <description>&lt;div class="imported-post"&gt;This post was imported from FARMCode.org which has been discontinued. These posts now exist here as an archive. They may contain broken links and images.&lt;/div&gt;This is quite possibly the most interesting/annoying/crazy quirk/bug I have ever come across.&lt;/p&gt;&lt;h1&gt;Scenario&lt;/h1&gt;&lt;p&gt;Your site has a sIFR menu. One of the links goes to a typical databound form (in our case an update user details form). &lt;/p&gt;&lt;h1&gt;Problem &lt;br /&gt;&lt;/h1&gt;&lt;p&gt;The user modifies a field and submits. The database table shows the change. However, when you navigate back to the form using your sIFR menu link, you notice the old value(s) in the fields. The correct values only appear once you clear your cache. This problem only occurs in IE7.&lt;/p&gt;&lt;h1&gt;Reason &lt;br /&gt;&lt;/h1&gt;&lt;p&gt;It turns out that the sIFR link is not a normal link. It is essentially like hitting the enter key in the address bar of a page that is already loaded. The browser merely loads from its cache. No matter how many times you click that link!&lt;/p&gt;&lt;h1&gt;Solution &lt;br /&gt;&lt;/h1&gt;&lt;p&gt;In the code behind of your form on page load call this: &lt;/p&gt;&lt;p&gt;Response.Cache.SetCacheability(HttpCacheability.NoCache);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:08:14 Z</pubDate>
      <a10:updated>2023-03-23T15:08:14Z</a10:updated>
    </item>
  </channel>
</rss>