0

我有以下 ActionLink

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

但它在地址栏中创建了以下链接http://localhost:1028/?Length=4而不是我期望的http://localhost:1028/Home

我做错了什么导致这个吗?

4

1 回答 1

2

您使用了错误的 ActionLink 重载。尝试:

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

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

于 2009-09-18T15:22:50.063 回答