The Html.ActionLink method renders a hyperlink (<a href=".."></a>) to another controller action. The Url.Action URL helper works the same way as Html.ActionLink, but it does not return an anchor tag.
Let’s see an example. Add the following code to your Index.cshtml or any view you want to display this on
Run the page and observe the source generated
While Html.ActionLink generates an anchor tag, Url.Action on the other hand generates just the URL. Generating just the URL could be helpful in scenarios where you want a convenient way to generate HTML for a link manually.
Note: For security purpose, make sure to encode your URL using Url.Encode or Html.AttributeEncode:
Will you give this article a +1 ? Thanks in advance