从母板页找子页的控件:
this.ContentPlaceHolder1.FindControl("ControlId")
从子页找母板页的控件:
this.Page.Master.FindControl("loginInfo")
本文介绍如何在ASP.NET中实现母版页与子页之间的控件交互。具体包括从母版页查找子页上的控件,以及从子页查找母版页上的控件的方法。
从母板页找子页的控件:
this.ContentPlaceHolder1.FindControl("ControlId")
从子页找母板页的控件:
this.Page.Master.FindControl("loginInfo")

被折叠的 条评论
为什么被折叠?