Partial templates are cshtml files which you can use multiple times. Typically they will contain something which you need in many places, like a menu or a data-visualizer which gets data as a parameter, and then creates a different table each time. Here's how to use it with Html.Partial(...).
cshtml
Html.Partial(...)
If you pass values to the Razor Control on older Base classes such as Razor14, the parameters arrive on the DynamicModel object.
Razor14
DynamicModel
On the new typed base class RazorTyped it will be in the MyModel object (see examples below)
RazorTyped
MyModel
This uses @Html.Partial to get the file line.cshtml 3 times.
@Html.Partial
line.cshtml
@inherits Custom.Hybrid.RazorTyped @Html.Partial("line.cshtml") @Html.Partial("line.cshtml") @Html.Partial("line.cshtml")
@inherits Custom.Hybrid.Razor14 <hr style="height: 10px; border: 1; box-shadow: inset 0 9px 9px -3px rgba(11, 99, 184, 0.8); border-radius: 5px;">