<table runat=server id="MyTable"></table>
Button MyButton=new Button();
MyButton.Text="MyButton";
MyButton.ID = "MyButton";
MyButton.Click+=new EventHandler(MyButton_Click);
MyButton.Attributes.Add("onclick", "");
HtmlTableRow MyRow=new HtmlTableRow();
HtmlTableCell MyCell = new HtmlTableCell();
MyCell.Controls.Add(MyButton);
MyRow.Cells.Add(MyCell);
MyTable.Rows.Add(MyRow);