Been looking ( maybe in the wrong place) , but I’m wondering how do I give a parameter from my actionlink to my controller.
This is my actionlink
<li>@Html.ActionLink("MyEpisodes", "Index", "Paging")</li>
And this is my function in my controller
public ActionResult Index(int? page, string condition)
{
// do stuff
So does anybody have an idea how to get my parameter condition from the actionlink?
When passing both the controller name (“Paging”) and routeValues to ActionLink you also need to pass null to the last parameter so it uses the correct
ActionLinkoverload:instead of the wrong one: