.net - How to get just the URL of an Action in an ASP.NET MVC View? -
Let me use the same syntax as the same line URL as Html.ActionLink
But do not know about doing so from your point of view.
Is there an HMLHlper extension that works like ActionLink
, but gives only the URL?
For example, I want to write:
& lt; Img src = "& lt;% = Html.ActionUrl (" image ", new {id = 42})%> & gt;
Check out:
Url.Action ()
alias:
& lt; img src = "& lt;% = Url.Action (" image ", new {id = 42})%> "/ & Gt;
Comments
Post a Comment