Button btnSender = (Button)sender; TextBox txt_TextBox = (TextBox)btnSender.Parent.FindControl("TextBox1"); string Text = txt_TextBox.Text;