Dec 20, 2011 at 12:29 PM
Edited Dec 20, 2011 at 12:31 PM
>This is a known behaviour according to the documentation: "To use Razor views throughout, simply delete (or rename) all the
Yes, when I want it to use the generic StandaloneTable.cshtml in stead of StandaloneTable.aspx, not when I want it to use the custom view in stead of the generic view. Or so I thought.
>The behaviour you are describing is generic to ASP.NET MVC, not specific to Naked Objects.
I am then confused by the meaning of the following section in the manual, because this is what prompted me to use generic aspx views, with custom cshtml views.
"When retrieving a named view, ASP.NET MVC3 will look first for a .aspx file of that name, and if none is found will look for a .cshtml file of the same name. It is therefore possible to combine the use of both viewing engines in one project: for
example you might choose to use the default .aspx views for generic presentation, but write any custom views to the Razor conventions."
And the reason for using aspx generic views in the first place:
"The Razor translations of the generic views are provided as a convenience to developers. They have not been subject to the same testing as the .aspx views and might contain errors. If using these translations, please test for correct functioning.
Remember that you can always switch back to .aspx views selectively if problems are encountered. Please report any errors found in the Razor views via the Naked Objects forum."