Is it possible to use RenderSections like here.
http://stackoverflow.com/questions/16611413/how-to-render-script-in-head-section-asp-net-mvc-razor
I tried, it did not throw any warnings but the content was not applied.
Is it possible to use RenderSections like here.
http://stackoverflow.com/questions/16611413/how-to-render-script-in-head-section-asp-net-mvc-razor
I tried, it did not throw any warnings but the content was not applied.
Hi Martin
RenderSections is a ASP.NET MVC feature and not a Razor feature as such. Dynamicweb is not ASP.NET MVC, so it will not work like that.
If you take a look in the Razor docs this is covered - you can use snippets or helpes instead. See this: http://developer.dynamicweb.com/documentation/for-designers.aspx
You can use masters and layouts and call functions between them. See below and example attached.
Master
Layout using a master
You must be logged in to post in the forum