J
John Hoge
I'm looking for that elusive .net time saving magic.
I have an application that presents a list of items which the user can
select from. A CheckBoxList works great for that, but I want to query
a database based on their selections.
I'm forced to dynamically building a SQL statement in a method I could
have done easily in classic ASP:
SELECT fields FROM tablename WHERE ID IN (value1,value2....)
where the values correspond to the boxes checked in the CheckBoxList
control.
With all the hype about the .net revolution from MS, shouldn't there
be a better way? I'm hoping to just say "select records whose ID
numbers correspond to the boxes checked" without the grind of building
and testing SQL strings with code.
Do I need to wait for .net 3.0?
John
I have an application that presents a list of items which the user can
select from. A CheckBoxList works great for that, but I want to query
a database based on their selections.
I'm forced to dynamically building a SQL statement in a method I could
have done easily in classic ASP:
SELECT fields FROM tablename WHERE ID IN (value1,value2....)
where the values correspond to the boxes checked in the CheckBoxList
control.
With all the hype about the .net revolution from MS, shouldn't there
be a better way? I'm hoping to just say "select records whose ID
numbers correspond to the boxes checked" without the grind of building
and testing SQL strings with code.
Do I need to wait for .net 3.0?
John