I'm trying to make my view work, how it works is you can select a number of different branches which will then be used to filter the search results. Now this works fine when I hit the filter button,
Here is the query string
/Search?Ref=&Keyword=&StartDate=&Branches=3299374&Branches=38087&Branches=38090&Branches=38093&Branches=38095
But when I click on the pager to go to another pager the query string changes to this
/Search?Branches=3299374%2C38087%2C38090%2C38093%2C38095&page=2
How can I stop the pager from doing this? I think it is encoding my query string, but i'm not 100% sure.
Also I have tried to create a shape view called Pager_Next.cshtml
@{
var pBranches = Request.QueryString["branches"];
var RouteValues = (object)Model.RouteValues;
RouteValueDictionary rvd;
if (RouteValues == null) {
rvd = new RouteValueDictionary();
}
else {
rvd = RouteValues is RouteValueDictionary ? (RouteValueDictionary)RouteValues : new RouteValueDictionary(RouteValues);
}
}
<a class="newer" href="@Url.Action((string)rvd["action"], rvd)">Newer articles</a>
But this still has the same results