Asp.net MVC ReturnUrl variable not showing up with method FormMethod.Post in Html.BeginForm
问题 The default template in MVC3 sets a 'returnurl' variable in the query string of the logon page. This page then posts back to a controller @using (Html.BeginForm()) { That is then picked up in the controller like so [HttpPost] public ActionResult LogOn(LogOnModel model, string returnUrl) { I wanted to add a CSS class to the form so I changed the helper to: @using (Html.BeginForm("LogOn", "Account", FormMethod.Post, new { @class = "form-horizontal" })) But now information in the query string