Find Controls of MasterPage inside Web ControlAjitender Vijay13yPublished May 14, 2013, 12:00 AMUpdated May 15, 2013, 6:19 AM3.3k02Reactions×25BlogWrite this code on button click event : protected void Button1_Click(object sender, EventArgs e){ Control ctl = this.Parent; String name = (ctl.Page.Master.FindControl("txtName") as TextBox).Text;}CommentsJoin the conversation! Your thoughts help the community grow.Sign in to leave a commentIt is the same account you read, post and publish with — and you will come straight back to this page.Sign inCreate an account
Join the conversation! Your thoughts help the community grow.