Mar 20, 2018 05:16 PM|mgebhard|LINK
In other platform (for example, Lotus Domino), we can share a single field, I am wondering if we can do it in asp.net (without creating partial view)
If you are familiar with Lotus Domino then you should be acutely aware that you are comparing apples and oranges.
From the openly published MVC documentation.
A partial view is a view that's rendered within another view. The HTML output generated by executing the partial view is rendered into the calling (or parent) view. Like views, partial views use the .cshtml file
Partial views are an effective way of breaking up large views into smaller components. They can reduce duplication of view content and allow view elements to be reused. Common layout elements should be specified in _Layout.cshtml.
Non-layout reusable content can be encapsulated into partial views.
It is simple, for example, if I have only one or two fields in razor view, and I want to share it with other views (since that field contains validations can be applied to other views), so instead of create a partial view to include the field(s), are there
any other way to share the field(s)?
Maybe an Html helper.