动态生成button并关联其onclick事件
HtmlTableCell cellDel = new HtmlTableCell();
Button btnDel = new Button();
btnDel.Click += new EventHandler(this.btnDel_Click);
cellDel.Controls.Add(btnDel);
Button btnDel = new Button();
btnDel.Click += new EventHandler(this.btnDel_Click);
cellDel.Controls.Add(btnDel);