M
M
Michael2015-02-02 19:52:24
ASP.NET
Michael, 2015-02-02 19:52:24

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

1 answer(s)
I
Ilya, 2015-02-12
@MickMS

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 question

Ask a Question

731 491 924 answers to any question