html.ActionLink链接没有返回预期值?
-
22-07-2019 - |
题
我有以下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语法正确的...
不隶属于 StackOverflow