たとえば、私はページにいますhttp://localhost:1338/category/category1?view=list&min-price=0&max-price=100
そして、私の見解では、何らかのフォームをレンダリングしたい
@using(Html.BeginForm("Action", "Controller", new RouteValueDictionary { { /*this is poblem place*/ } }, FormMethod.Get))
{
<!--Render some controls-->
<input type="submit" value="OK" />
}
私が望むのはview
、現在のページ リンクからパラメーター値を取得して、フォームの get 要求を作成するために使用することです。試し@using(Html.BeginForm("Action", "Controller", new RouteValueDictionary { { "view", ViewContext.RouteData.Values["view"] } }, FormMethod.Get))
ましたが、役に立ちません。