ASP. net mvc action Filters

Source: Internet
Author: User

When reading this article fun with HTTP headers in ASP. net mvc action filters, I mentioned a project ASP. NET MVC action filters created by Roni schuetz on codeplex. We plan to release the first version in May 10. Action filter contained in the Project Plan:

    • Action filter for creating Easy Rest API with JSON and XML
    • Action filter for logging scenarios
    • Action filter for Microsoft Health Monitoring
    • Action filter for client caching
    • Action filter for client Compression
    • Action filter for server Caching
    • Action filter for controller execution time measurement

Brief Introduction to action filter: Action filter acts as an attribute that can be applied to the Controller action (or the entire Controller) to change the action executed by the action. ASP. net mvc Framework includes several action filters:

    • Outputcache-caches the output of controller actions within the specified time.
    • Handleerror-handling of controller action errors.
    • Authorize-Restrict access permissions through specified users or roles.

You can also create your own action filter. For example, to implement a custom verification system, you may need to create a custom action filter, you can also create a custom action filter to change the view data returned by the Controller action.

For more information about action filter, see ASP. net mvc Framework Action filters ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.