Fly with the wind-TerryDong

.NET on the way

导航

2008年5月12日

摘要: 两个UC:A.ascx ,B.ascx 在A中FindControl后B的类型是UsesrControl,是B父类,不能直接使用B中的自定义方法和属性,不过我们可以通过反射的方式可以在A中获取B中的所有信息并可以操作B的方法 demo code: //get u2 instance UserControl u2 = (UserControl)this.Parent.FindControl("UC... 阅读全文

posted @ 2008-05-12 14:54 Terry Dong 阅读(298) 评论(2) 推荐(0) 编辑