Author: waqturk | Posted on: 9/12/2009 11:38:17 AM | Views : 1113

Hi, 
I have created a table in design view and then I created a method which fills that table with rows and cells. Until here everything is fine. The problem is that, there is a button which should find the specific checkbox and then change some data in my database. But, whenever I use the code below cnt.findControl("checkBox") find the same button because cell looks for whole page to find control. How can i prevent it and find the specific checkbox which is stand in a specific row?


foreach (TableRow row in subTable.Rows) { foreach (TableCell cnt in row.Cells) { CheckBox box = (CheckBox)cnt.FindControl("checkBox"); } }






Sincerely.
Kemal


< ...

Go to the complete details ...