Monday, April 29, 2013

How to create image link in ASP.NET MVC?

@Html.ActionLink("buttontext", "actionName", "controllerName", null, new { @class="alinkimage" })

CSS definition:

a.classname
{
background: url(../Images/image.gif) no-repeat top left;
display: block;
width: 150px;
height: 150px;
}

No comments:

Post a Comment