How to intercept any postback in a page? - ASP.NET

前端 未结 6 2006
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 08:46

I want to intercept any postbacks in the current page BEFORE it occurs . I want to do some custom manipulation before a postback is served. Any ideas how to do that

6条回答
  •  攒了一身酷
    2020-12-03 09:21

    To get the postback before a page does, you can create an HttpHandler and implement the ProcessRequest function.

    Check this Scott Hanselman link for a good blog post on how to do it (including sample code).

提交回复
热议问题