开发者

Cannot see changes made to aspx

开发者 https://www.devze.com 2022-12-29 05:03 出处:网络
I\'m trying to edit an aspx page...mainly javascript, and I randomly see changes that I\'ve made when refreshing.

I'm trying to edit an aspx page...mainly javascript, and I randomly see changes that I've made when refreshing.

I'm using jquery, but I'm not sure that jquery is the culprit here.

For example. If I add a simple alert("hello"); in the page I'm calling, I do not see it take place until I have clea开发者_C百科red all my temp files and cache, closed my browser opened back up...and even then, sometimes, I still don't see my changes.

Any ideas?


Do a Ctrl+F5 to force a full refresh, this will make your scripts reload. IE likes to hold onto things...usually in a way that doesn't make any sense of obey any rules.

Alternatively, set no cache on the server, like this:

Response.Cache.SetCacheability(HttpCacheability.NoCache);

Or in the head of the page html, like this:

<meta http-equiv="pragma" content="no-cache"/>


you can do several things that will help you to find the issue

  1. Using Firebug Check for any JavaScript errors
  2. To be sure of using the same file hit Ctrl + A to select all and then hit Del, save the file and check if page is empty.
  3. Hit Ctrl + F5 to refresh browsers cache
  4. Dont use alert("something") to debug, you can use a debugger; line with FireBug.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号