RiceRiceBaby RiceRiceBaby - 3 months ago 12
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?

Answer

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.

Comments