Hi, we have three virtual methods that I think accomplish what you're looking for.
OnPreAction, OnPostAction, OnError.
You can override those methods on your controller and return false to stop processing. Returning a boolean is kind of awkward. We plan to have some sort of context or args object so you can set args.Handled = true.
Phil Haack (http://haacked.com/)
Senior Program Manager, Microsoft
Haacked
Contributor
6901 Points
412 Posts
Re: OnBefore/OnAfter Action
Dec 11, 2007 07:23 PM|LINK
Hi, we have three virtual methods that I think accomplish what you're looking for.
OnPreAction, OnPostAction, OnError.
You can override those methods on your controller and return false to stop processing. Returning a boolean is kind of awkward. We plan to have some sort of context or args object so you can set args.Handled = true.
Senior Program Manager, Microsoft
What wouldn’t you do for a Klondike bar?