title: how to insert values in sql server through radio button
body: <p>I previously use this code for insert operation but along with this I want to save the radiobutton values:</p>
  
  <pre><code>cmd.CommandText="INSERT INTO Table1 (username,password,gender VALUES(@username,@password,gender)";
  cmd.Parameters.AddWithValue("@username", textBox1.Text);
  cmd.Parameters.AddWithValue("@password", textBox2.Text);
  </code></pre>
  
  <p>I have two radio buttons for male and female, I want to save only one value in the database so I have used groupbox for selecting only one radio button but how to insert into database as male or female.</p>
  
  <p>I am working on windows form.</p>