Asp.Net MVC ActionLink

Posted by Pino on Stack Overflow See other posts from Stack Overflow or by Pino
Published on 2010-05-24T13:56:21Z Indexed on 2010/05/24 14:01 UTC
Read the original article Hit count: 430

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

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc