How to define Html.BeginForm for action with attribute routing?
Controller [HttpGet] [Route("~/search/{clause}/{skip?}")] public async Task<ActionResult> Search(string clause, int skip = 0) { ... } View @using (Html.BeginForm("Index", "search", FormMethod.Get)) { @Html.TextBox("clause", null, new { @class = "form-control col-md-4" }) ... } Rendered Html <form action="/search" method="get"> <input id="clause" name="clause" type="text" value="test"> </form> I am using [HttpGet] partly because i want the search to be accessing via http://myapp.com/search/<search values> When i navigate to http://myapp.com/search/test , everything seems fine, but when i try to