title: ODBC update using ASP.NET forms
body: <p>How do I pass karthik@domain.com and kars@domain.com using ASP.NET forms (textbox) ?</p>
  
  <pre><code>string MyConString = "DRIVER={MySQL ODBC 3.51 Driver};" + "SERVER=localhost;" + "DATABASE=new_db;" + "UID=root;" + "PASSWORD=password;" + "OPTION=3";
  
  OdbcConnection MyConnection = new OdbcConnection(MyConString);
  
  OdbcCommand cmd = new OdbcCommand("UPDATE awm_create SET referral_email='karthik@domain.com' WHERE email='kars@domain.com'" , MyConnection);
  
  MyConnection.Open();
  
  cmd.ExecuteNonQuery();
  </code></pre>