By mistake I took the wrong constructor in an ActionLink
:
@Html.ActionLink("Show Customer", "Load", "Customer", new {Model.Id });
The error is, that the last parameter is of type htmlAttributes
and not of routeValues
(as expected). So the right constructor would have been:
@Html.ActionLink("Show Customer", "Load", "Customer", new {Model.Id }, null);
So I do not need to solve that problem... I just wonder, when I used the wrong constructor, my routeValue must have been interpreted as an htmlAttribute
.
I was just surprised that it results in a length
-Parameter. The generated code was:
/Customer/Load?Length=7
Just by curiosity: Where does the length=7
come from?