We have a [UserNameFilter] ActionFilterAtrribute which populates the controller actions username parameter. This works nicely. However, when I use the Html.ActionLink helper stringly typed to the controller, the compiler requests said username parameter in the View.
Has anyone come across this and know how to recitify?
Controller Action:
[UserNameFilter]
public ActionResult Category(int categoryId, int page, string userName)
Code in View:
<%= Html.RenderTree(ViewData.Model, i => Html.ActionLink<ProductController>(pc =>
pc.Category(i.CategoryId, 1, **Complier error here**),i.CategoryName)) %>