Check out example codes for "button commandfield commandargument pass textbox". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com