asp.net doesn't respond immediately when code updated

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

A javascript code is changed on file WebForm.aspx.cs, in my ASP.Net C#.
However, it seems the MSIE doesn't repond immediately after the code
updated, and it still shows me the stuff before the code updated.
Would anyone give me some advice?
Thanks for help.


Jason
 
MSIE performs some caching, of the things like js and other stuff that comes
to the client and works on the client side

you can set 'no-cache' attribute for http headers, also you can disable
caching in the IE, ( afair temporary internet files -> settings )
 
hi,

are you sure the script is in the .aspx.cs file?

If so it probably is in the code behind, hence you need to compile it before
you see the effects.

cheers,
 
Thanks!
I use the F5 method, and this works immediately! I think it re-compile the
file.
 
hi,

yes , it does recompile the solution. Also remember that if you inly change
the .aspx page you do not need to recompile, just refresh teh page

cheers,
 
Back
Top