1
Reply

Explain the use of Filter with an example?

Samir Bhogayta

Samir Bhogayta

Jun 29, 2016
338
0

    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.

    Samir Bhogayta
    June 29, 2016
    0