我有以下ActionLink的

Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})

但是它会在地址栏中 HTTP下面的链接://本地主机:1028 /长度= 4 作为反对什么,我希望它是作为的http://本地主机:1028 /主页

我做错了什么导致此?

有帮助吗?

解决方案

您正在使用ActionLink的错误的过载。尝试:

Html.ActionLink("Home", "Index", "Home", Nothing, New With {.class = "tab"})

...希望我有我的VB语法正确的...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top