Hi,
I have SQL Database called GAME, table called SET, rows SetID, Name and Match (Match has random int 0 to 10 inclusive)
On a Webform, I have created a checkboxlist with SQLDataSource1 defining SELECT DISTINCT [Match] FROM [SET] ORDER BY [Match] and to return only unique rows.
I have also created a gridview with SQLDataSource2 defining SELECT [Name], [Match] FROM [SET] WHERE ([Match] = @Match) using WHERE clause conltrolID checkboxlist.selectedvalue.
What I am trying to accomplish is a gridview that shows the reults of the selected boxes from the checkboxlist.
What I am getting is a gridview showing just the lowest box selected, not all. How do I get the grid to show all boxes checked?
Can explain more if needed.
Cheers,
James
I have SQL Database called GAME, table called SET, rows SetID, Name and Match (Match has random int 0 to 10 inclusive)
On a Webform, I have created a checkboxlist with SQLDataSource1 defining SELECT DISTINCT [Match] FROM [SET] ORDER BY [Match] and to return only unique rows.
I have also created a gridview with SQLDataSource2 defining SELECT [Name], [Match] FROM [SET] WHERE ([Match] = @Match) using WHERE clause conltrolID checkboxlist.selectedvalue.
What I am trying to accomplish is a gridview that shows the reults of the selected boxes from the checkboxlist.
What I am getting is a gridview showing just the lowest box selected, not all. How do I get the grid to show all boxes checked?
Can explain more if needed.
Cheers,
James