开发者

How do I make a custom ActionLink?

开发者 https://www.devze.com 2022-12-29 22:27 出处:网络
I need to include an image within the &开发者_如何学运维lt;a> tag of an ActionLink. What is the best way to do this?

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

精彩评论

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