ActionLink with image, imagelink

In MVC 3 there is no imagelink available, but sometimes you want to use the actionlink because it's nice and handy but without the text. Then, maybe, you can try this

An actionlink, without text but with a image in the background through css:

   <span class="gaitem">@item  
        @Ajax.ActionLink(" ", "DeleteDimension","rapport", new { dimension = @item, rapportid = @Model.RapportId },
        new AjaxOptions { UpdateTargetId="dimensions" },
        new { style = "background: url('/Images/close.png') no-repeat center right;display:inline-block; height:12px; width:24px;margin-top:0px;text-decoration:none;" }
        )
    </span>

{{opmerking.Naam}}:

{{opmerking.OpmerkingText}}

            

Saving your comment....

Naam is verplicht!
Email is verplicht!
Opmerking is verplicht!