I'm using ASP.NET MVC and I have a partial control that needs a particular CSS & JS file included. Is there a way to make the parent page render the script
and link
tags in the 'head' section of the page, rather than just rendering them inline in the partial contol?
To clarify the control that I want to include the files from is being rendered from a View with Html.RenderPartial
and so cannot have server-side content controls on it. I want to be able to include the files in the html head
section so as to avoid validation issues.