views:

36

answers:

0

I've got filters applied to my controllers, and I need to dynamically get the parameter given to the filter applied to the controller. The first thought that probably comes to your mind is "why?", but we're configuring the navigation so it knows what to render and when dependent on the filter's parameter. In this case it's a security role, so the controller has [Auth(Role.Administrator)]. I have so far managed to get access to the filter, but not the parameter by doing Context.CurrentControllerContext.ControllerDescriptor.Filters but just can't get access to the needed parameter.