R
R
Roman Yakovlev2012-09-01 11:20:56
ASP.NET
Roman Yakovlev, 2012-09-01 11:20:56

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

3 answer(s)
A
Alex Shkor, 2012-09-01
@AlexShkor

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.

F
FanKiLL, 2012-09-01
@FanKiLL

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.

A
asdz, 2015-01-20
@asdz

Of course it is possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question