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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -