I am working with MVC, I have a view with ActionLink that calls my controller action, my problem is when I want to call the javascript function in the onClick () event of this action link (how this action link is converted to the standard html tag during fulfillment). How can I do it? what's better? Here is the code for my ActionLink:
<%=Html.ActionLink("View Report", "GeneratePdf", new { strProductId = myObject.productId})%>
Thanks.
source
share