I have Action Filters which gets executed before every action method.
In the first filter OnActionExecuting(ActionExecutingContext filterContext)
the filterContext
is having the wrong data. So I need to know from where the ActionExecutingContext object gets populated. I have looked into the MSDN link. but the one line explanation is not clear to me.
EDIT 1: code to redirect
return Redirect("/SUser/Content/Collection/" + ID);
before going to the Content
Controllers Collection
action method, following filters method get executed.
public override void OnActionExecuting(ActionExecutingContext filterContext){}
the parameter filterContext
should contain the URL "/SUser/Content/Collection/"
but instead of that it contains a different URL and because of that it is getting redirected to the wrong action method.I want know How and Where the ActionExecutingContext
class object gets populated so that if allowed I will set the correct URL.