1. Create a method that returns the data from database, for example:<br />
public static List<pcgame> GetPcGames(int pcGameID)<br />
{<br />
List<pcgame> pcGames= new List<pcgame>();<br />
<br />
DataTable dtResult = GetDataTable("exec GetPcGamesByPcGameID @pcGameID='" + pcGameID + "'",<br />
CommandType.StoredProcedure);<br />
<br />
foreach (DataRow dr in dtResult.Rows)<br />
{<br />
PcGame game = new PcGame(dr);<br />
game.PcGameID = dr["PcGameID"].ToString();<br />
game.Name = dr["Name"].ToString();<br />
<br />
pcGames.Add(game);<br />
}<br />
<br />
return pcGames;<br />
}<br />
<br />
2. Assign the value returned from the method to the CheckBoxList:<br />
chkBox1.Source = GetPcGames(chkBox1.SelectedID);<br />
chkBox1.Bind();</pcgame></pcgame></pcgame>