ActionLink(linkText、actionname、actioncontroller、RouteValue、htmlAttributes)呈现错误的Html

ActionLink(linkText、actionname、actioncontroller、RouteValue、htmlAttributes)呈现错误的Html,html,asp.net-mvc-4,Html,Asp.net Mvc 4,我有以下Html.ActionLink调用: @Html.ActionLink(linkText: "dothis", actionName: "Index", controllerName: "SelectActioncontroller", routeValues: new { actionController = "dothisController", actionName = "dothis", actionText = "dothis" }, htmlAttributes: null)

我有以下Html.ActionLink调用:

@Html.ActionLink(linkText: "dothis", actionName: "Index", controllerName: "SelectActioncontroller", routeValues: new { actionController = "dothisController", actionName = "dothis", actionText = "dothis" }, htmlAttributes: null)
但结果我得到:

<a href="/SelectActioncontroller?actionController=dothisController&actionName=dothis&actionText=dothis">dothis</a>

错在哪里?根据我迄今为止读到的所有其他答案,这应该会导致:

<a href="/SelectActioncontroller/dothis?actionController=dothisController&actionName=dothis&actionText=dothis">dothis</a>

我错过了什么

我正在使用VS2012.net4.0 mvc4

@Html.ActionLink(linkText: "dothis", 
                 actionName: "Index", 
                 controllerName: "SelectActioncontroller", 
                 routeValues: new { actionController = "dothisController", actionName = "dothis", actionText = "dothis" },
                 htmlAttributes: null)

如果您正在链接中使用
“Index”
操作,请检查第二个参数。由于它是默认路由中操作的默认值,因此不会添加到URL。

感谢您的解释!事实上,我有一个不同的问题,在此之前,我修复了,并没有意识到我的链接已经在工作(我是如此执着于获得某个链接)。但我仍然想知道为什么他们会删除我明确指定的内容?@DoB只是为了让URL更短更干净。