D
DotNetDev
Hi,
I add some checkboxes to an <ASP.Table>
I want execute a function whenever one of the checkboxes is clicked.
How can I do that.
This is how I was trying...
TableRow aRow = new TableRow();
CheckBox aBox = new CheckBox();
aBox.ID = "SomeID";
aBox.CheckedChanged += new EventHandler(aBox_CheckedChanged);
aBox.AutoPostBack = true;
TableCell aCell = new TableCell();
aCell.Controls.Add(aBox);
aRow.Cells.Add(aCell);
aTable.Rows.Add(aRow);
where aTable is a 'System.Web.UI.WebControls.Table'
Thnx for your help.
I add some checkboxes to an <ASP.Table>
I want execute a function whenever one of the checkboxes is clicked.
How can I do that.
This is how I was trying...
TableRow aRow = new TableRow();
CheckBox aBox = new CheckBox();
aBox.ID = "SomeID";
aBox.CheckedChanged += new EventHandler(aBox_CheckedChanged);
aBox.AutoPostBack = true;
TableCell aCell = new TableCell();
aCell.Controls.Add(aBox);
aRow.Cells.Add(aCell);
aTable.Rows.Add(aRow);
where aTable is a 'System.Web.UI.WebControls.Table'
Thnx for your help.