0

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?

Jaimin
  • 7,834
  • 2
  • 23
  • 31
Heidel
  • 3,054
  • 15
  • 49
  • 77
  • 2
    possible duplicate http://stackoverflow.com/questions/824279/why-does-html-actionlink-render-length-4 – Akki619 Aug 12 '13 at 10:05

1 Answers1

3

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)
Satpal
  • 129,808
  • 12
  • 152
  • 166