TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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"
})
Reply
Answers (
1
)
not all code paths return a value
Instructor LED training hands on MVC 5