RiceRiceBaby RiceRiceBaby - 1 year ago 120
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download