How can I include css files from an MVC partial control?

后端 未结 9 1600
南笙
南笙 2020-12-28 09:15

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

9条回答
  •  醉话见心
    2020-12-28 09:41

    If you willing to break conformance, you can just emit a style definition with the partial content. This tends to work in most recent browsers.

提交回复
热议问题