I have an Oracle DB, and an ASP Page that has many ListBoxes and DropDownLists. These controls make the user input data to get filtered results on the next page.
Once the user clicks search, a string (query) is generated based on the selections of the user. The results page has a datagrid that takes this string and uses it to get data for the grid from the database.
Also, I want to use a separate class with methods to create the string.
My datagrid is working fine with queries that I type on my own, but what I need is a class to generate that query using all the user input.
What would be the best approach? (I am using ASP.NET 2.0 and C#)