Asp.Net MVC ActionLink
- by Pino
Can anyone explain why the following happens? And how to resolve, Visual Studio 2010 and MVC2
<%= Html.ActionLink("Add New Option", "AddOption", "Product", new { @class = "lighbox" }, null)%>
Results in
/Product/AddOption?class=lightbox
<%= Html.ActionLink("Add New Option", "AddOption", "Product", new { @class = "lighbox" })%>
Results in
/Product/AddOption?Length=7
Thanks