Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 asp.net 项目中创建了 web 用户控件,我想在表单中添加动态 web 用户控件,如何在数据表中动态 web 用户控件
您可以使用LoadControl()方法
例子 :
Control CT = LoadControl("Control Path"); PlaceHolder1.Controls.Add(CT);