cshtml での実装
@Html.ActionLink($"Link Text", "MyAction", "MyController", null, null, "fragmentString", null, null)
出力結果はこんな感じです。
http://localhost/MyController/MyAction#fragmentString
Including an anchor tag in an ASP.NET MVC Html.ActionLink
http://stackoverflow.com/questions/274586/including-an-anchor-tag-in-an-asp-net-mvc-html-actionlink/274637#274637
0 件のコメント:
コメントを投稿