I cannot decide whether to use htmlHelper or a partial view to solve my problem.
I would like to use the following code:
<div style="width: 500px; float: left;"> <div class="box effect2"> <span><a href="@Url.Action("someMethod", "somController")"> <img src="@Url.Content("~someurl)" /></a></span> </div> </div>
Href parameters and images will be parameters.
What is the best way to do this?
source share