Why does the following code:
<%= Html.ActionLink("[Click Here For More +]", "Work", "Home", new { @class = "more" }) %>
render as:
<a class="more" href="/Home/Work?Length=4">[Click Here For More +]</a>
Where is that "Length=4" coming from?
Update
If I remove the new { @class = "more" }
, I don't get that Length=4 parameter.
I've had this happen before. If you look at the overload you're actually using it's probably not the one you want.
Try...
<%= Html.ActionLink("[Click Here For More +]", "Work", "Home", null, new { @class = "more" }) %>
I look at the overloads for ActionLink and changed the code to look like:
<%= Html.ActionLink("[Click Here For More +]", "Work", "Home", null, new { @class = "more" }) %>
Added a "null" for the route values. This seems to work. Not sure though what this might affect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With