ASP.NET MVC - Getting Html.BeginForm() to remember Querystring params when submitting via GET

前端 未结 3 1313
深忆病人
深忆病人 2020-12-30 16:04

I have a form rendered via Html.BeginForm(), it exists as a component in the Master page so that it appears on every page in the application. I have done this using Html.Ren

3条回答
  •  天命终不由人
    2020-12-30 17:00

    Use one of the overloads of BeginForm that takes a routeValues object or dictionary.

    Additional properties not in the route will be added as query parameters.

提交回复
热议问题