How to write a SQL query for numerous conditions with lots of fields in ASP.NET

Posted by Yongwei Xing on Stack Overflow See other posts from Stack Overflow or by Yongwei Xing
Published on 2010-04-12T12:46:30Z Indexed on 2010/04/12 12:53 UTC
Read the original article Hit count: 285

Filed under:
|
|

Hi all

I have a ASP.NET site. There is a table in the SQL Server with more than 30 fields. I need make a page on which there are many filters to query data from database based on the filters you select or input. One filter for one fields in the database. The filter would be dropdown list, textbox,checkbox or listbox. If you do not choose one filter, it means select all for this field. So there are lots of combination for these fields. Is there any simple way to write such page and query for this requirement?

Best Regards,

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about tsql