Samir Bhogayta
Explain the use of Filter with an example?
By Samir Bhogayta in ASP.NET on Jun 29 2016
  • Samir Bhogayta
    Jun, 2016 29

    Suppose you are working on a MVC application where URL is sent in an encrypted format instead of a plain text, once encrypted URL is received by server it will ignore action parameters because of URL encryption.To solve this issue you can create global action filter by overriding OnActionExecuting method of controller class, in this you can extract the action parameters from the encrypted URL and these parameters can be set on filterContext to send plain text parameters to the actions.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS