How can I get just href part of Html.ActionLink result text
asp.net-mvc
Solution
Try this
<%=Url.Action("Action","Controller")%>
Problem
As you know, ``` <%=Html.ActionLink("Back to List", "Index") %> ``` generates html like this : `<a href="/Content/Index">Back To List</a>` But I need just href part. I will use it in JS code and I do not want to write manually. Can I gerenate what I need part ?