0
Reply

Embed an image in Html.ActionLink

Ask a question
neel k

neel k

10y
490
1
hi,
 
This is my ActionLink in MVC 5
 
 
@Ajax.ActionLink("Compare", "_CompareCustomerDetails", new { ExistingCustomerId = item.customer_id, NewCustomerId =TempData["NewCustomerID"] }, new AjaxOptions()
{
HttpMethod = "Get",
UpdateTargetId = "divCustomerCompare",
InsertionMode = InsertionMode.Replace
},
new { id = "lnkCompare" })
 
In  this I need to insert image instead of text (Compare). How can I do this.
 
 
Thanks.