江雨:
动态创建
如何使在Panle 中一排中放两个Button

解决方案 »

  1.   

    1、
    Response.Write("<INPUT type=button value=Button>")
    2、
    page.Controls.Add(控件ID)
    比如:
    Dim Button As New HtmlInputButton()
    page.Controls.Add(Button)
      

  2.   

    改改:Panle.Controls.Add(Button)2次,注意先后顺序。Button.xxx设置属性。
      

  3.   

    反正只要是“容器”就有Controls.Add()
      

  4.   

    要用OP的思路来作,不要用Response.Write,用Panle.Controls.Add(Button)