asp: o evento Click do botão não está sendo disparado
Estou adicionando linhas dinamicamente em uma tabela asp. Em cada linha da tabela, também incluo um botão que possui um evento SelectProduct_Click.
O problema é que, embora eu esteja registrando o evento click, o evento não está sendo disparad
O botão está sendo adicionado desta maneira:
btnSelect = new Button();
btnSelect.ID = "btnSelect";
btnSelect.CommandArgument = od.ProductId;
btnSelect.Click += new EventHandler(this.SelectProduct_Click);
btnSelect.CssClass = "button";
btnSelect.Text = "Select";
cell = new TableCell();
cell.Controls.Add(btnSelect);
row.Cells.Add(cell);
Como posso acionar meu botão ao clicar?