开发者

How do I make a custom ActionLink?

I need to include an image within the &开发者_如何学运维lt;a> tag of an ActionLink. What is the best way to do this?

The final rendered link should look like this,

<a href="/Home/Test"><img src="test.jpg" />Test</a>


Like this:

<a href="<%= Url.Action("...")"><img src="test.jpg" alt="test" />Test</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜