Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi In my webapplication i will use javascript script external file.if i change any line or if i put alert msg in javascript file,if i build and rebuild again and again,even though if i clear browser cache,new line not work ,it only work old script,i mean new added not work again and again it work previous script,

I will try to remove cache in browser,close and open vs2012,clear temporary project in My Documents folder,remove temporary sap file form
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files"
but still work only script only.

If i use breakpoint,in IE it open that dynamic javascript file,in that newly changed line not appear,but in original javascript page it have newly changed line.


If i use script coding in same page and change some line ,but not clear chahe ,again and again previous javascript line work.

Pls reply asap

Regards
Aravind
Posted
Updated 19-Jul-14 6:05am
v4
Comments
Tanuj Rastogi 4-Jul-14 1:06am    
Now only thing left for you is try restarting VS as well ;)

1.The JavaScript files are not built in the process of building in Visual Studio, they are built, executed and cached automatically by the browser.

2.After each change in any JavaScript files you have to clear the browser cache only, and no build/rebuild of the source code in Visual Studio is necessary.

Here is a link about how to clear the browser cache: http://www.wikihow.com/Clear-Your-Browser's-Cache[^]
 
Share this answer
 
I have also faced the same problem for this i have deleted cache in browser and did build,rebuild and clear project but not succeeded.I have faced this problem many times.
So i closed visual studio and opened now my problem was solved.
 
Share this answer
 
Comments
Aravindba 4-Jul-14 7:16am    
if i close and open visual studio not clear that problem,so i will use Firefox using F12 Developer tool for view javascript line when debugging time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900