Answer the question
In order to leave comments, you need to log in
Is there a way to reload the page immediately after saving changes to a file (VS 2012 - APS.NET MVC)?
Actually a subject. Is there a way to not press F5 every time after editing a view or controller to see the changes.?
Answer the question
In order to leave comments, you need to log in
Not for a controller. For views, you can write an observer that will track changes in * .cshtml files and send new html back via web sockets. Only question is why? And judging by your question, you can hardly write such functionality.
You don't have to press every time. Views normally catch changes anyway, you need to reload the page.
Controllers also catch changes, you just need to do Build or F6.
Since the IIS Express process is not killed after Stop Debuging, you just need to rebuild.
The site works, it's just that if an error pops up, it will not be transferred to VS.
This is all, of course, if you are using IIS Express, which is now the default.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question