天天看點

PlaceHolder動态添加控件 可動态的添加控件 手動添加控件

可動态的添加控件   手動添加控件

HtmlButton hb = new HtmlButton();

        hb.InnerText = "b";

        this.PlaceHolder1.Controls.Add(hb);

        Literal bai = new Literal();

        bai.Text = "bai";

        this.PlaceHolder1.Controls.Add(bai);