RiceRiceBaby RiceRiceBaby - 2 months ago 6x
ASP.NET (C#) Question

Action link to the same page

I need to create an html action link that is equalivent to

<a href="#">Test Link</a>

or an action link to the current page. Anyone have any examples?


Yes, I have a suggestion. Just put <a href="#">Test Link</a> in your view. The only reason to use Html.ActionLink is to resolve a URL dynamically. Here there's no need, so just use the HTML.