里面ActionLink的ASP MVC3插入HTML标签 [英] ASP MVC3 insert html tag inside actionlink
本文介绍了里面ActionLink的ASP MVC3插入HTML标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是新来的ASP MVC3,我用剃刀引擎。
I'm new to the ASP MVC3 and I'm using Razor Engine.
我broplem是,我已经建立我在形式上主导航
My broplem is that I've build my main navigation in form
<nav> <ul> <li><a href=""><b>Link</b></a></li></ul></nav>
那么,如何我可以用ActionLink的做到这一点?我只需要插入一个标签内的b标签。
So how I can do this with the actionlink? I just need to insert b tag inside a tag.
推荐答案
使用 @ Url.Action()
来获取href的值,而不是 @ Html.ActionLink
Use @Url.Action()
to get href value instead of @Html.ActionLink
这篇关于里面ActionLink的ASP MVC3插入HTML标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文