如何动态在网页中创建控件
先创建孔件的运行实例并设置其属性
然后将孔件加到现有容器的controls集合就可以了
然后将孔件加到现有容器的controls集合就可以了
Button myButton = new Button();
myButton.ID = "btnAddNew";
myButton.Text = this.XframeResInfo.GetLangString("_Add");
myButton.CommandName = "AddNew";
this.Panel.Controls.Add(myButton);
myButton.ID = "btnAddNew";
myButton.Text = this.XframeResInfo.GetLangString("_Add");
myButton.CommandName = "AddNew";
this.Panel.Controls.Add(myButton);
其它控件类似.