摘要: 如:有用户控件header、affiche,在affiche中获取header的值(前提这些值必须public)在affiche.cs中加入多个属性值:Page p = this.Parent.Page; UserControl uc = p.FindControl("header1") as UserControl; Type pageType = uc.GetType();FieldInfo[] myFields = pageType.GetFields(BindingFlags.Public | BindingFlags.Instance);for (int i = 阅读全文
posted @ 2011-05-03 10:34 94cool 阅读(266) 评论(0) 推荐(0)