Asp.Net MVC Exploring Controllers in-depth Part 8 – Bestdotnettraining

Asp.Net MVC Exploring Controllers in-depth Part 8 – Bestdotnettraining

Cancelling Filter Execution

  1. You can cancel filter execution in the OnActionExecuting methods by setting the Result property to a non-null value.
  • Any pending OnActionExecuted and OnActionExecuting filters will not be invoked
  • Invoker will not call the OnActionExecuted method for the cancelled filter or for pending
  • The OnActionExecuted filter for previously run filters will
  • All of the OnResultExecuting and OnResultExecuted filters will
  1. You can cancel filter execution in the OnResultExecuting methods by setting the Cancel property.
  • Any pending OnResultExecuted and OnResultExecuting are cancelled and blank o/p is rendered to the browser.
  • The OnResultExecuted filter for previously run filters will run.

 

Vist for MVC online Training for Beginners

Please follow and like us:
0

Leave a Reply

Your email address will not be published. Required fields are marked *