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?
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?
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)