csharp get value from textbox

Code Example - csharp get value from textbox

                
                        string objTextBox = x.Text;
//Sample:
TextBox objTextBox = (TextBox)sender;
string theText = objTextBox.Text;