There are markup and in certain places I want to add a View from other files.
How to implement this with the help of a helper, what would, for example, write "Paste content" and give the path to the file (and that the attached file was processed by Razor and there was something else to process)?

  • one
    Html.RenderPartial msdn.microsoft.com/en-us/library/… - Igor
  • Thank. At first I used it incorrectly and thought that it was not that. - Re-read should be of the form @ Html.Partial ("~ / Views / MyView.cshtml") -Thank you. - Rakzin Roman

1 answer 1

 @Html.Partial("~/Views/MyView.cshtml") 

Thanks @Igor