asp.net如何给母版页中label控件赋值?

解决方案 »

  1.   

    Lable lb=this.Master.FindControl("label1") as Label;
      

  2.   


    方法二:Masterprivate Label m_label;public Label label
    {
         get
         {
              .....
         }
         set
         {
             .....
         }
    }
      

  3.   

    TextBox textBoxFind = (TextBox)this.Page.Master.FindControl(masterPageContentPlaceHolderID).FindControl("");