John John
John John

Reputation: 1

Converting Html.action link to a regular link

I have the following code generated by default from asp.net mvc

@Html.ActionLink("Details", "Details", new { item.ORG_ID  })

But I am using an open source web template where I can display a user friendly button such as:-

<a class="btn btn-success" href="#">
<i class="icon-zoom-in icon-white"></i>
View
</a>

So my question is ; how I can convert the html.actionlink to be <A> link Regards

Upvotes: 1

Views: 1769

Answers (1)

Memoizer
Memoizer

Reputation: 2289

<a class="btn btn-success" href="@Url.Action("Details", new { item.ORG_ID  })">
    <i class="icon-zoom-in icon-white"></i>
    View
</a>

Upvotes: 3

Related Questions