I have problem passing hidden field value in actionlink parameter:
productView:
@Html.ActionLink("ProductCompare",
"ProductCompare",
new { ProductIds= **hdnSelectedProductId**)
@Html.Hidden("hdnSelectedProductId")
Controller Action:
public ActionResult ProductCompare(string ProductIds)
{
return View();
}
When user select any product i keep putting product ids in hdnSelectedProductId using javascript. Now when user click on ProductCompare link i want to pass this hidden field value to controller. Please guide me.