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,964
  • 2
  • 25
  • 32
Heidel
  • 3,174
  • 16
  • 52
  • 84
  • 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
  • 132,252
  • 13
  • 159
  • 168