Answer the question
In order to leave comments, you need to log in
How to organize data filtering in asp.net core mvc application?
Hello! I am developing an online store using ASP.NET CORE MVC. I use the site metanit. Little development experience. When loading the main page, I display cards of all products and something like on this page https://metanit.com/sharp/aspnet5/8.2.php On the form I have four drop-down lists, the data source of which is product categories. When I fill in all four fields with categories and hit submit , everything works fine, the filtered cards are displayed. Now I need that when entering data into one of the fields, the data sources are automatically filtered in the drop-down lists of the remaining fields and a "show" link and the number of positions are formed next to it. I saw such filters on many sites, for example https://www.1001tur.ru/ I want a list with checkboxes to drop down on a click on the field and I could make a multiple selection of categories. And at the same time, when selecting items in one field, checkboxes in other fields would be automatically filtered out.
Answer the question
In order to leave comments, you need to log in
Personally, I did not understand. Describe for yourself to understand the process.
In theory, you can create a controller that will give data sets, respectively, after some actions on the client, you give a new data set, or if there is enough data, do everything on the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question