Click here to Skip to main content
15,894,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a drop-down list, with the following options:
Approved
Disapproved
Unread
Read

Data will be searched and retrieved from a database based on the selection of the admin, event-based, meaning every time the selection is changed, the results shown are refreshed according to the criteria set. How can I achieve this?
Posted

On dropdown change event you can get the selected value as this.value. Then pass that data to server side to retrieve the appropriate data related to it using jQuery Ajax. There are many good articles on implementing this using jQuery on CP.

Please refer to some of them here:
CRUD Operations using Partial View and jQueryUI in ASP.NET MVC4 - Part 2[^]
Performing CRUD operations using ASP.NET Web API - Part 2[^]

I hope this would help you getting started. If you get stuck in somewhere, then please post a new question along with the code which was not working properly for you while working on it.
 
Share this answer
 
v2
That's a lot of coding. That you need to figure out on your own.

But here's a tip :
You can make Jquery AJAX[^] call to the server based on your dropdown selection.
And you can refresh your set of collection in success function of the $.Ajax({...}).

-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900