Extending WebFormView in MVC

前端 未结 3 1569
深忆病人
深忆病人 2021-01-26 05:17

I want to extend the WebFormViewEngine so that I can perform some post-processing - I want it to do it\'s stuff, then hand me the Html back, so I can do put some final touches t

3条回答
  •  青春惊慌失措
    2021-01-26 06:05

    You can use Action Filters to do this. Check out this tutorial at asp.net/mvc. You want to use a ResultsFilter.

    As an alternate, you can override the virtual OnResultExecuted method of the Controller.

提交回复
热议问题