John Vicencio

John Vicencio

  • NA
  • 73
  • 1.2k

Hello I've added a Search Filter and Current Filter.

Aug 21 2017 5:54 PM
I'd like to keep the current query string while sorting. My code is here: https://dotnetfiddle.net/n8fg3I
 
Model  
 
all the properties
 
Controller
 
Logic to Filter by Category
Logic to Sort based on some criteria
 
Keep Current Filter While categorized
 
View
 
How can I do that with
 
@Html.DropDownList("Category", (SelectList)ViewBag.Category, "All", new { @class = "form-control"}) 

Answers (1)