62,268
社区成员
发帖
与我相关
我的任务
分享
switch(布局种类)
{
case 种类1:
用户控件1类名 control = (用户控件1类名)this.LoadControl("用户控件1文件路径.ascx");
control.用户控件1中你写的各种方法();
case 种类2:
用户控件2类名 control = (用户控件2类名)this.LoadControl("用户控件2文件路径.ascx");
control.用户控件2中你写的各种方法();
}
用户控件类名 control = (用户控件类名)this.LoadControl("用户控件文件路径.ascx");
control.用户控件中你写的各种方法();