title: Insert radio button selected value into database
body: <p>I am building a C# Windows application with 2 radio buttons for gender. I'm using a simple insert query to insert data in the database. </p>
  
  <p>Can anyone help me with inserting the selected radio button value to the database? I am using 2 radio buttons, not a radio button list. </p>
  
  <p>For the moment my query is as follows:</p>
  
  <pre><code>Class1.ABC("insert into emp(code,names,m_name,desgnation,gender) 
                          values ('" + textBox1.Text + "','" + 
                                       textBox2.Text + "','" + 
                                       textBox3.Text + "','" + 
                                       textBox4.Text + "','" + 
                                       textBox5.Text + "','" + 
                                       radioButton1.Checked+"' )");
  </code></pre>