Answer the question
In order to leave comments, you need to log in
How is it possible to filter data using a dropdown list in ASP.NET MVC?
Good day to all!
Faced with the task, it is necessary to display the list of films in the view by category from the drop-down list.
Movies and categories are separate, interconnected entities.
Answer the question
In order to leave comments, you need to log in
The easiest way is to return to the view in the category drop-down list. And then on the change event of this select'a load movies with Ajax.
That is, there will be 2 actions, the first returns the categories, and the second all the films in this category.
Seems simple, just ask.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question