Html.BeginForm loses routeValues with FormMethod.GET
问题 I have noticed what Html.BeginForm() method encodes supplied routeValues into action attribute of FORM tag. This works well with POST method. But if method is GET all parameters in action URL are stripped by browser (tested on IE8 and Firefox 3.0.7). For example, this code in view <% using (Html.BeginForm("TestAction", "TestController", new { test = 123 }, FormMethod.Get)) { Response.Write("<input type='submit'>"); }; %> gives such HTML <form action="/TestController/TestAction?test=123"