Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.52 KB | None | 0 0
  1. if (ViewBag.CurrentFilter != null)
  2.     {
  3.         string[] ids = new string[ViewBag.CurrentFilter.Length];
  4.         int i = 0;
  5.  
  6.         foreach (string id in ViewBag.CurrentFilter)
  7.         {
  8.             ids[i] = id;
  9.             i++;
  10.         }
  11.        
  12.         @Html.PagedListPager(Model, page => Url.Action("Index") + "?" + string.Join(",", ids.Select(x => "AllergyID=" + x)) + "&" + page);
  13.        
  14.  
  15.     }
  16.     else
  17.     {
  18.         @Html.PagedListPager(Model, page => Url.Action("Index", new { page = page }));
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement