Click here to Skip to main content
15,881,872 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to find the best way to do a search with multiple criteria. The user would make a selection on a drop-down list and fill in text box with a measurement to search for. Anyone have a suggestion.
Posted
Comments
Brij 18-Sep-10 2:33am    
Your question is not very clear. You are doing search from DB or from Inmemory data?

1 solution

Have multilple/different search criteria controls on a page - it can have few textboxes, checkboxes, dropdown and calendars.

Once user fills the search parameters, on Search button click event - pass on all the search parameter as a parameterized query/Stored Procedure to your DB. Run the query based on those parameters and get back the data in UI layer.

Bind the retrieved data to Grid(or any other control) and display it.
Done. This should suffice your need in a good way.
 
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