html - How to give images for the action link in asp.net mvc4 -
i have got task give images action link
@ajax.actionlink("delete", "delete", "fiuser", new { id = item.userid }, new ajaxoptions { httpmethod = "post", onsuccess = "deletfiuseronsucess", confirm = "do want delete record?" })
the image is
<img src="../../images/delete.png" alt="delete" />
how can this?
inside actionlink,define class mycssclass
@ajax.actionlink("delete", "delete", "fiuser", new { id = item.userid }, new ajaxoptions { httpmethod = "post", onsuccess = "deletfiuseronsucess", confirm = "do want delete record?" }, new { @class = "mycssclass" }) .mycssclass { background-image:url('../../images/delete.png'); }
Comments
Post a Comment