<compilation>
<buildProviders>
<add extension=".html" type="System.Web.Compilation.PageBuildProvider"/>
</buildProviders>
</compilation>
<httpHandlers>
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>
以上代码在web.config中添加
本文介绍如何通过修改web.config文件来使ASP.NET能够处理HTML文件。具体操作包括添加编译提供者以支持HTML页面编译,并设置HTTP处理器来确保所有HTML文件可以通过PageHandlerFactory进行处理。
322

被折叠的 条评论
为什么被折叠?



