//
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);
转载于:https://www.cnblogs.com/lfzwenzhu/archive/2010/08/18/1802631.html
转载请注明原文地址: https://win8.8miu.com/read-1558899.html