Button btn=new Button();
btn.Text="hgknight";
btn.Style["Top"]="100px";
btn.Style["Left"]="100px";
btn.Style["Position"]="absolute";
this.Controls[1].Controls.Add(btn);

解决方案 »

  1.   

    hgknight(江雨.net) 
    谢拉!
    祝你新年快乐!!
      

  2.   

    aspx中把PlaceHolder1放在<tr>与</tr>之间
    CodeBehind中Page_Load()中加上:
    Label Label1=new Label();
    Label1.Text="加的标签";
    TextBox TextBox1 = new TextBox();
    TextBox1.Text="文本框";
    RadioButton RB1 = new RadioButton();
    RB1.Text="选择";
    this.PlaceHolder1.Controls.Add(new LiteralControl("<td colspan=2>"));
    this.PlaceHolder1.Controls.Add(Label1);
    this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td colspan=2>"));
    this.PlaceHolder1.Controls.Add(TextBox1);
    this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td>"));
    this.PlaceHolder1.Controls.Add(RB1);
    this.PlaceHolder1.Controls.Add(new LiteralControl("</td><td></td>"));