美文网首页
管理请求处理

管理请求处理

作者: jackcong | 来源:发表于2017-09-22 16:15 被阅读0次

1. url重定向 

Response.Redirect 302

Response.RedirectPermanent

2. 自定义处理程序拦截

public class selfModule : IHttpModule {

  public void Init(HttpApplication app) {

    app.PostResolveRequestCache+= (scr,args) => {

       app.Context.RemapHandler(new selfHandler());

        }

    }

}

3. Server.Transfer(IHttpHandler对象 | 文件路径)

4. Server.Execute(Page对象)

相关文章

网友评论

      本文标题:管理请求处理

      本文链接:https://www.haomeiwen.com/subject/fnufextx.html