类:
public Control LoadUserControl(string virtualPath)
{
return TemplateControl.LoadControl(virtualPath);
}
怎么调用
Control control;
control = LoadUserControl("usercontrol/case/casedetail.ascx");
control.ID = "caseDetail";
this.holder.Controls.Add(control);