We rely on ads to keep creating quality content for you to enjoy for free.
Please support our site by disabling your ad blocker.
Continue without supporting us
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
+Red King Subscriber²
I really like the @Html.EditorFor(m => m.Foo) expressions and such.
There are a few issues though,
1. Refactoring the Model does not refactor the CSHTML (I am actively working on the model so its a big issue)
2. Rebuilding does not build the CSHTML files to tell me that it no longer compiles. This becomes a runtime error.
3. IdFor gets the Id of an EditorFor form field. I used that in a "var foo = $('#@Html.IdFor(m => m.Foo)');" but at that point it becomes nasty. Ideas?
Link to comment
https://www.neowin.net/forum/topic/1248318-aspnet-mvc5-cshtml-razor-issues/Share on other sites
5 answers to this question
Recommended Posts