Reputation: 3262
I use
@Html.ActionLink("Read More", "About", "Home", new {@class="button"})
in my Asp.NET MVC web site, but as result my link looks like this,
http://localhost:43988/Home/About?Length=4
.
Why I get this part ?Length=4
in my links?
Upvotes: 0
Views: 3217
Reputation: 133453
Use this
@Html.ActionLink("Read More", "About", "Home", null, new {@class="button"})
There is no overload as below see msdn docs
@Html.ActionLink Method (HtmlHelper, String, String, String, Object)
Thus use
@Html.ActionLink Method (HtmlHelper, String, String, String, Object, Object)
Upvotes: 3