create ajax actionlink with html elements in the link text

后端 未结 3 1602
小鲜肉
小鲜肉 2020-12-16 02:33

I would like to convert a link to an ajax action link. I can\'t figure out how to display html elements within the link text?

Here is the original link:



        
3条回答
  •  Happy的楠姐
    2020-12-16 03:38

    @Ajax.ActionLink(" Name", "AjaxGetAllUsers", "Admin", new { sortBy = ViewBag.SortByName, search = Request.QueryString["search"] }, new AjaxOptions() { UpdateTargetId = "userlist", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" }, new { @class = "fa fa-sort" })
    

提交回复
热议问题