使用HttpHandler技术
1、新建类LikeFilter,实现IHttpHandler接口
bool IHttpHandler.IsReusable {
get { return false; }
}
void IHttpHandler.ProcessRequest(HttpContext context) {
context.Response.Write("22222222222222222111111111111111");
}
2、修改配置文件
<httpHandlers>
<add verb="*" path="Admin/*" type="LikeFilter"/>
发表于 @ 2008年06月10日 11:09:00 | 评论( loading... ) | 举报| 收藏