For example, I am on the page http://localhost:1338/category/category1?view=list&min-price=0&max-price=100
And, in my opinion, I want to display some form
@using(Html.BeginForm("Action", "Controller", new RouteValueDictionary { { /*this is poblem place*/ } }, FormMethod.Get)) { <input type="submit" value="OK" /> }
I want to get the value of the view parameter from the current page link in order to use it to build a request for a form. I tried @using(Html.BeginForm("Action", "Controller", new RouteValueDictionary { { "view", ViewContext.RouteData.Values["view"] } }, FormMethod.Get)) , but this does not help.
source share