I have a JavaScript file in which I need to generate an action link via Razor syntax. Here's my code so far.
@{
int ID = @:cardId;
@:row.insertCell(0).innerHTML = @Url.Action("Details", "Cards", new { Id = ID});
}
I want to nest my own text in the link. ie. <a>MyText</a>
However, the Url.Action method is the only method I know of to create a link via Razor and I don't see an overload method that allows me to customize the text of the link.