Mauro
Mauro

Reputation: 4511

ASP.Net MVC - Recompile after changing HTML markup?

In Asp.Net 1.0/2.0/3.0 (non-MVC) I used to be able to change HTML markup whilst debugging, hit CTRL-S and then refresh my page to see the difference.

Can I do the same with Asp.Net MVC 2.0 using partial views or do I need to recompile the app each time?

Upvotes: 0

Views: 389

Answers (3)

WestDiscGolf
WestDiscGolf

Reputation: 4108

No you're fine, I do it :-) If you are just changing markup and javascript a Ctrl+S and refresh will be fine. If you start changing c#/vb.net thats when you need to re-compile.

Upvotes: 0

Andrew Lewis
Andrew Lewis

Reputation: 5256

Yes, I do this while debugging, and have never had problems.

Upvotes: 0

Matthew Abbott
Matthew Abbott

Reputation: 61589

The default view engine for MVC uses the same WebForms technology that vanilla ASP.NET does. You can do the same for ASP.NET MVC, when the runtime detects the files have changed, the views are recompiled.

Upvotes: 1

Related Questions