Custom PageHandlerFactory for .aspx

后端 未结 2 713
执笔经年
执笔经年 2021-02-10 11:35

I am building a fairly simple CMS. I need to intercept requests for the majority of .aspx pages in my web application, in order to gain complete control over the output. In mo

2条回答
  •  囚心锁ツ
    2021-02-10 11:38

    Do you mean that you are going to inject controls? If that is the case, you might want to consider a required base class instead of the Page class. Page implements IHttpHandler, so you can create a derived class and then change your pages to derive from your derived class. You will have much more control over your page and be able to hook into it and its rendering.

提交回复
热议问题