Can I make IIS add (inject) HTML to every page it serves?

后端 未结 4 1228
清歌不尽
清歌不尽 2021-01-14 11:21

I would like to add some HTML to every page that our IIS 6 server serves. It\'s serving static HTML for the most part. Is this something IIS or an extension can do? I wou

4条回答
  •  一个人的身影
    2021-01-14 11:51

    In IIS proper, you can add a footer, which is great for a copyright line, or similar. If you want more control, to truly "inject", I would create an HTTP Handler (.NET) that handles .html requests and adds what you need.

    If you are "old school", use ISAPI filters instead. Too much work for my tastes.

提交回复
热议问题