code changes not seen when page loaded

Discussion in 'Visual Studio' started by lucy, Sep 30, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello I have been using visual studio 2005 for over a year with an sql2005 database. Recently pages that I make changes to compile but the changes are not seen in the visual studio browser. An illustrative example might be that I change the a label from "Hello" to "Goodbye". The code compiles but the "Hello" still shows up on the rendered page.

    If I add a new item to my web page, I don't have this problem. I can't make changes and they are reflected. These problems don't exist on the deployed web site. That is if I upload the page to discountasp.net's server. The label example above reads "Goodbye".

    Any thoughts.

    Thank you ahead of time.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

  3. I guess I'm not sure why it would cache one page and not another. I got rid of the problem by creating another page with exactly the same code except for the page name and code behind file name. I don't understand why out of the blue this page would render differently, i.e begin caching on the browser. This page doesn't intentionally use any caching. I have solved the problem but am worried about this inconsistency.


    Any other thoughts.


    Thanks


    Lucy
     
  4. Browser caching problems arent as common as they used to be but they do still occur from time to time. This link is old but some of the concepts are still valid.

    http://www.web-caching.com/browserbugs.html


    'I guess I'm not sure why it would cache one page and not another. '

    &

    'I have solved the problem but am worried about this inconsistency.'


    Both these statements seem to imply you believe its not a client side issue. There is a very simple way to address this concern. Restart your computer and try a different browser. Then see what happens.
     
  5. Run the code in Visual Studio(F5)

    In Visual Studio Refresh the Application folder (Right Click on the Application Folder and click "Refresh Folder").

    Refresh the Browser.

    Your changes will get reflected in browser [​IMG]

    Post Edited (Deepak Selvaraj) : 12/7/2008 5:16:39 AM GMT
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page