比如在页面中有一个用户控件,用户控件想得到页面中某Label的值(这个Label不在这个用户控件内)怎么做? ((Label)((System.Web.UI.Page)System.Web.HttpContext.Current.Handler).FindControl("test")).Text (页面中的Label ID="test") 得到页面的其他控件同样道理
转载于:https://www.cnblogs.com/powerlc/archive/2005/04/11/135806.html
相关资源:数据结构—成绩单生成器