neel k

neel k

  • NA
  • 143
  • 136.4k

MVC 5 action link text change to image

Nov 26 2014 4:56 PM

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