当前位置: 代码迷 >> ASP.NET >> 在子页中怎么 获得模板页 中的控件
  详细解决方案

在子页中怎么 获得模板页 中的控件

热度:7217   发布时间:2013-02-25 00:00:00.0
在子页中如何 获得模板页 中的控件?
如题,如何获取到摸板页上的控件,在它的子页中。谢谢。

------解决方案--------------------------------------------------------
this.masterPage.FindControl("ID");
------解决方案--------------------------------------------------------
母版页中:
C# code
public string Lable1    {        set { this.Lable1.Text = value; }        get { return Lable1.Text; }    }
  相关解决方案