How to find the control on page in nested master page.
ContentPlaceHolder cp = this.Master.Master.FindControl("MainContent") as ContentPlaceHolder;
TextBox tb = cp.FindControl("textbox1") as TextBox;
ContentPlaceHolder cp = this.Master.Master.FindControl("MainContent") as ContentPlaceHolder;
TextBox tb = cp.FindControl("textbox1") as TextBox;
No comments:
Post a Comment