title: I am getting 'System.Web.UI.WebControls.TextBox' into sql table instead of getting actual data entered in text boxes
body: <p>Can someone please help me figure out why I am getting <code>'System.Web.UI.WebControls.TextBox'</code> in MySQL database instead of actual values being entered in the text field. The code I am using is below ..</p>
  
  <pre><code>MySql.Data.MySqlClient.MySqlConnection conn;
  MySql.Data.MySqlClient.MySqlCommand cmd;
  string queryStr;
  string connString=System.Configuration.ConfigurationManager.ConnectionStrings["WebAppConnectionString"].ToString();
  conn = new MySql.Data.MySqlClient.MySqlConnection(connString);
  conn.Open();
  queryStr = "";
  queryStr = "INSERT INTO seework.userdata (First_Name, Middle_Name, Last_Name, Email_Address, Phone_Number, Username, Password)" + "VALUES('" + firstnameTextBox + "','" + middlenameTextBox + "','" + lastnameTextBox + "','" + emailaddressTextBox + "','" + phonenoTextBox + "','" + usernameTextBox + "','" + passwordTextBox + "')";
  cmd = new MySql.Data.MySqlClient.MySqlCommand(queryStr, conn);
  cmd.ExecuteReader();
  conn.Close();
  </code></pre>
  
  <p>I have tried all I could but still no luck. Any help would be really appreciated.
  Thanks in Advance!</p>