动态添加 Web控件 和 Web用户控件'动态添加Web控件
动态添加 Web控件 和 Web用户控件
Dim btnAdd As New Button
动态添加 Web控件 和 Web用户控件btnAdd.ID 
= "btnAdd"
动态添加 Web控件 和 Web用户控件
btnAdd.Text = "New Button"
动态添加 Web控件 和 Web用户控件
Me.Panel1.Controls.Add(btnAdd)
动态添加 Web控件 和 Web用户控件
动态添加 Web控件 和 Web用户控件
'动态添加用户控件
动态添加 Web控件 和 Web用户控件
Dim uc As UC1
动态添加 Web控件 和 Web用户控件uc 
= CType(LoadControl("uc1.ascx"), UC1)
动态添加 Web控件 和 Web用户控件
Me.Panel1.Controls.Add(uc)
动态添加 Web控件 和 Web用户控件

相关文章: