Dear Sir...
My requirement is from list of checkboxes whene user click on checkbox the background color of these checkbox is changed.....
These is my code-
public string getWhileLoopData1()
{
List<int> list = new List<int>();
OleDbConnection cn = con.GetConnection();
string s2 = "Select id,seat_id from available_seat Where screen_no="+Lbl_screen_no.Text+" and seat_class='Gold' order by id";
cmd1 = new OleDbCommand(s2, cn);
OleDbDataReader dr1 = cmd1.ExecuteReader();
if (dr1.HasRows)
{
while (dr1.Read())
{
int count = Convert.ToInt32(dr1[0]);
list.Add(count);
}
}
string htmlStr = "";
for (int i = 0; i < list.Count; )
{
htmlStr += "<input type='checkbox' Id=" + list[i] + " name=' ' value=' '><input type='checkbox' Id=" + list[i + 1] + " <input type='checkbox' Id=" + list[i + 2] + "<input type='checkbox' Id=" + list[i + 3] + "<input type='checkbox' Id=" + list[i + 4] + "<input type='checkbox' Id=" + list[i + 5] + "<input type='checkbox' Id=" + list[i + 6] + "<input type='checkbox' Id=" + list[i + 7] + " <input type='checkbox' Id=" + list[i + 8] + "<input type='checkbox' Id=" + list[i + 9] + "";
i = i + 10;
}
return htmlStr;
}
plz help....