陋室铭
永远也不要停下学习的脚步(大道至简至易)

<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);

posted on 2008-07-31 16:03  宏宇  阅读(389)  评论(0编辑  收藏  举报