Is there a way to get rid of aspx placeholder files in a ASP.NET web deployment project?

后端 未结 2 614
深忆病人
深忆病人 2020-12-30 13:23

I\'m using a web deployment project in order to precompile my ASP.NET 3.5 web project. It creates a single extra DLL for the code in aspx a

2条回答
  •  情话喂你
    2020-12-30 13:49

    IF it is possible, then it will require, at the least, the mapping in IIS of all possible requests to the asp.net engine. Not very difficult. Then, a HttpHandler should be possible to intercept all incoming requests. That handler should then be able to dynamically load compiled page classes and render them. You'd basically have a single engine DLL that serves page content.

    But as you might have noticed from all the should's, it's not a simple thing to accomplish, and I doubt that it's really worth the trouble. What exactly is wrong with these placeholder files being present?

提交回复
热议问题