Is it possible to attach a parameter to every single @Html.ActionLink without changing the code in the view file?
Something like:
public ActionResult Edit(int id)
{
RouteData.Values.Add("param_name", "param_value"); // This does not work
return View();
}
I want all the links to contain the parameter:
<a href="/controller/action/1?param_name=param_value">test</a>
Session is not a good option because users can open multiple windows in the browser.