0
Answer

MVC 5 action link text change to image

neel k

neel k

9y
655
1

hi all, 

This is action links code in mvc 5. I need to add images instead of text. how to do.
 
@Html.Raw("<a onclick='MergeCustomer(" + item.customer_id + ", " + TempData["NewCustomerID"] + ")'>Merge</a>") 

<span style=" color:black">|</span>
@Ajax.ActionLink("Compare", "_CompareCustomerDetails", new { ExistingCustomerId = item.customer_id, NewCustomerId = TempData["NewCustomerID"]}, new AjaxOptions()
{
HttpMethod = "Get",
UpdateTargetId = "divCustomerCompare",
InsertionMode = InsertionMode.Replace
//LoadingElementId = "Loading"
}, new { id = "lnkCompare"})
 
thanks