How do I create the correct route values for this ActionLink?

后端 未结 5 1322
一整个雨季
一整个雨季 2021-02-18 21:48

The Model of SearchResults.aspx is an instance of PersonSearch; when the request for a new page arrive (a GET request), the action method should take i

5条回答
  •  [愿得一人]
    2021-02-18 22:21

    You need use RouteLink instead ActionLink. Your code should look something like this

    @Html.RouteLink("Next", new {controller = "SearchResults", action = "Index", search=samevalue, page=1 }) 
    

提交回复
热议问题