How to render a Section in a Partial View in MVC3?

I had the same issue on top of duplicate scripts, so I created a couple of Extension methods: public static class HtmlHelperExtensions { private const string _jSViewDataName = “RenderJavaScript”; private const string _styleViewDataName = “RenderStyle”; public static void AddJavaScript(this HtmlHelper htmlHelper, string scriptURL) { List<string> scriptList = htmlHelper.ViewContext.HttpContext .Items[HtmlHelperExtensions._jSViewDataName] as List<string>; if (scriptList != null) … Read more