在ASP.NET 1.1 中使用预编译功能!
原来宝贝就在我们身边,唉,惭愧:) 关键字:System.Web.Handlers.BatchHandler
非常简单的两步:
1.Machine.config 的<httpHandlers></httpHandlers>加入下面的语句--大约在316行处
<add verb="*" path="precompile.axd" type="System.Web.Handlers.BatchHandler"/>
2. 你的每个WebApp的web.config的<system.web></system.web>中加入下面的
<httpHandlers>
<add verb="*" path="precompile.axd" type="System.Web.Handlers.BatchHandler"/>
</httpHandlers>
3. 用下面的连接访问
http://localhost/YourWebApp/precompile.axd
会发现出现如下的提示:
Batch compilation was successful!
表示成功! 然后可以删除你所有的源代码了J
具体的原文参考:
http://weblogs.asp.net/jgalloway/archive/2004/10/15/242677.aspx