다음 코드에서 "동물 이름"뒤에 부트 스트랩 글리 phicons를 포함하고 싶습니다.@ Ajax.ActionLink() 메서드로 부트 스트랩 글리 피언을 사용하는 방법?
@Ajax.ActionLink("Animal Name", "_Index", new { sortOrder = ViewBag.NameSortParam, searchString = Request["searchString"] }, new AjaxOptions
{
HttpMethod = "GET",
UpdateTargetId = "PartialTable",
InsertionMode = InsertionMode.Replace
})
가능합니까 ?? 수없는 경우, 같은 다른 대체 솔루션이 있습니다 : @ Html.ActionLink() 방법으로 부트 스트랩 Glyphicons를 사용하는 다른 방법으로 사용됩니다
<a href="@Url.Action("Index", "Animal", new {sortOrder = ViewBag.NameSortParam, searchString = Request["searchString"] })">
<span style="font-size:18px">Animal Name</span>
<i class="glyphicon glyphicon-triangle-bottom"></i>
</a>
!
아니 그 불가능 ActionLink '()'. 대안은 확장 방법을 소유하고 있습니다. –
감사합니다 !! $ .ajax() 메서드를 사용하고 있습니까 ?? – TanvirArjel
아니요. 원하는 html을 생성하기 위해 자신 만의'HtmlHelper' 확장 메소드를 작성해야합니다. –