Javascript File Changes not updated

May 12, 2014 at 5:46 AM
I am a novice ASP programmer.
I have been trying the sample provided by you but a strange problem has gripped my dev enviroment.
The changes done in Contact.js file are not reflected on the browser when i debug the Application.
I have tried cleaning IE cache , restarted VS2010 , machien log off and log on.
The only thing that have worked is changing the file name and corresponding reference in Index.cshtml

Please help in in understaing why this is happening.

I USe VS2010 + MVC4 + IE on Windows 7
May 13, 2014 at 9:56 AM
Edited May 13, 2014 at 9:57 AM
Hi try to use this code at the bottom of the view
or you can include the render script on the _Layout.cshtml

@section Scripts {
@Scripts.Render("~/Scripts/Contact.js") } instead of

<script src="~/Scripts/Contact.js"></script>