随笔-25  评论-31  文章-0  trackbacks-0
07 2011 档案
用户控件.ascx与网页.aspx交互的几种方法
摘要: 1.aspx文件:public void SetLabel(string str) { this.Label1.Text = str; ; } ascx文件;protected void Button1_Click(object sender, EventArgs e) { System.Web.UI.Page p = this.Page; Type pageType = p.GetType(); MethodInfo mi = pageType.GetMethod("SetLabel"); mi.Invoke(p, new object[] { "test!!!阅读全文
posted @ 2011-07-26 11:00 noviceliu 阅读(35) | 评论 (0) 编辑