<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->//Load
UserControl c1 = (UserControl)LoadControl("ucCheckBoxGroup.ascx");
c1.ID = "_UserGroups";
//Set Property
Type c1Type = c1.GetType();
System.Reflection.PropertyInfo c1PInfor = c1Type.GetProperty("ConnectionString");
c1PInfor.SetValue(c1,strConn, null);
//display
//Page.Controls.Add(c1)
C.Controls.Add(c1);
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12639172/viewspace-671381/
,如需转载,请注明出处,否则将追究法律责任。