0
我有以下ActionLink的html.ActionLink链接不返回预期值?
Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})
但在地址栏中http://localhost:1028/?Length=4,而不是我所期望它为http://localhost:1028/Home创建以下链接。
我做了什么错误导致这个?
我有以下ActionLink的html.ActionLink链接不返回预期值?
Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})
但在地址栏中http://localhost:1028/?Length=4,而不是我所期望它为http://localhost:1028/Home创建以下链接。
我做了什么错误导致这个?
您正在使用ActionLink的错误超载。尝试:
Html.ActionLink("Home", "Index", "Home", Nothing, New With {.class = "tab"})
...希望我有我的VB语法正确的...