1
Answer

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

John Vicencio

John Vicencio

7y
551
1
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)