如何查找带母版页的控件 Master.Master.FindControl("")

来源:互联网 发布:2017年淘宝不好做了 编辑:程序博客网 时间:2024/05/03 20:30
通过this.Master获取直系Master,让后this.Master.Master可以获取父Master
Master.Master.FindControl("")
TextBox textBoxFind = (TextBox)this.Page.Master.FindControl(masterPageContentPlaceHolderID).FindControl(""); 

原创粉丝点击