0

Continuing on this question Can you use @section in a partial view?, where the answer is no, I'll know if there is an alternative way to use @section in a partial view.

I'll know this because I've got an wysiwyg editor (named CK editor) that I'll use multiple times. This need some scripts that I wouldn't repeat every time on each page. I'll keep it dry.

I'll also that the script tags are on the bottom of the rendered page (in the browser).

Community
  • 1
  • 1
H. Pauwelyn
  • 13,575
  • 26
  • 81
  • 144
  • 1
    See this thread: http://stackoverflow.com/questions/5433531/using-sections-in-editor-display-templates – trailmax Feb 17 '17 at 15:15
  • 2
    Perhaps you could use custom HTML helpers like [this answer](http://stackoverflow.com/a/3823912/181087)...? Do note it is also possible to make [templated HTML helpers](http://www.codeguru.com/csharp/.net/net_asp/mvc/using-display-templates-and-editor-templates-in-asp.net-mvc.htm). – NightOwl888 Feb 17 '17 at 22:07

0 Answers0