开发者

asp.net mvc difference between OnAuthorization and OnActionExecuting

could someone help to explain the difference between OnAuthorization and OnAction开发者_StackOverflowExecuting in asp.net mvc?


OnAuthorization gets called when authorization occurs and OnActionExecuting gets called before the action method is invoked. Authorization will occure before action execution. This gives you chance to check if user is authorized to execute that action.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜