html.ActionLink 链接未返回预期值?
我有以下 ActionLink
Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})
但它在地址栏中创建以下链接 http://localhost:1028/?Length =4 而不是我期望的 http://localhost:1028/Home。
我是否做错了什么导致了这种情况?
I have the following ActionLink
Html.ActionLink("Home", "Index", "Home", New With {.class = "tab"})
But it creates the following Link in the address bar http://localhost:1028/?Length=4 as opposed to what I expect it to be as http://localhost:1028/Home.
Have I done something wrong to cause this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用了错误的 ActionLink 重载。尝试:
...希望我的 VB 语法正确...
You're using the wrong overload of ActionLink. Try:
...hoping I've got my VB syntax right...