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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -