How2: what event to hook in HttpModule for putting js links into head element

前端 未结 3 1806
梦如初夏
梦如初夏 2020-12-09 14:12

I want to have HttpModule to inject javascripts, css links into HEAD element from some simple config data. I am not sure which event I should hook?

Curently I use

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 14:59

    An HttpHandler would be a better choice for this type of functionality. Here is an example which goes over combining css and javascript files; it is not exactly what you are looking for but should get you headed in the right direction: http://www.codeproject.com/KB/aspnet/HttpCombine.aspx

提交回复
热议问题