111,126
社区成员
发帖
与我相关
我的任务
分享<httpHandlers>
<add verb="*" path="*.html" type="SomeNameSpace.SomeHandler, 这里是程序集名称" />
</httpHandlers>namespace SomeNameSpace {
public sealed class SomeHandler : IHttpHandler {
public void ProcessRequest(HttpContext context) {
// 接受到了一个来自html文件的请求
}
public bool IsReusable {return false;}
}
}<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.html" type="System.Web.DefaultHttpHandler" />
</httpHandlers>
</system.web>
</configuration>