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?
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
Share on other sites
5 answers to this question
Recommended Posts