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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -