Create URL link with id for action

In my view page, I want to refer to the Show action and pass it the ID that the action expects as a parameter.

Which html helper am I using? I don't want it to create a string href page, just a URL.

+1


a source to share


1 answer


<%= Url.Action("Display", "controller", new {ID = someIdValue}); %>



+2


a source







All Articles