ASP.Net and Custom Screen

I have an constituent custom screen that I built with ASP.Net. Simple screen where all it does is display a note field from a local table and allows the user to update that note. All of that works fine except if I do and update which works and the DB is updated but if I close the customer record and come back to it, I see the note as it was prior to the update. If I right click on the screen and select refresh, I now see the updated value.

So the DB update is working but why is it still showing the original value?

 

BTW, I am doing a response.redirect back to itself after the update.

 

Thanks,

Marty

Parents
  • Hi Marty,

     

    Your web page is being cached.  In the page load put the following statement:

    Response.Cache.SetCacheability(

     

    HttpCacheability.NoCache);

    I ran into the same problem when I started developing these pages as well.

    Jon

     



    [edited by: Jon Ballinger at 5:55 AM (GMT -6) on 18 Jan 2011]
Reply
  • Hi Marty,

     

    Your web page is being cached.  In the page load put the following statement:

    Response.Cache.SetCacheability(

     

    HttpCacheability.NoCache);

    I ran into the same problem when I started developing these pages as well.

    Jon

     



    [edited by: Jon Ballinger at 5:55 AM (GMT -6) on 18 Jan 2011]
Children