Html.ActionLink(linkText, actionname, actioncontroller, routevalues,
htmlAttributes) renders wrong HTML
i have the following Html.ActionLink call:
@Html.ActionLink(linkText: "dothis", actionName: "Index", controllerName:
"SelectActioncontroller", routeValues: new { actionController =
"dothisController", actionName = "dothis", actionText = "dothis" },
htmlAttributes: null)
But as result i get:
<a
href="/SelectActioncontroller?actionController=dothisController&actionName=dothis&actionText=dothis">dothis</a>
What is wrong, by all other answers I read sofar this should result in:
<a
href="/SelectActioncontroller/dothis?actionController=dothisController&actionName=dothis&actionText=dothis">dothis</a>
What do I miss?
I'm using VS2012 .net4.0 mvc4
No comments:
Post a Comment